svnno****@sourc*****
svnno****@sourc*****
2011年 4月 2日 (土) 23:35:46 JST
Revision: 2550 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2550 Author: dhrname Date: 2011-04-02 23:35:45 +0900 (Sat, 02 Apr 2011) Log Message: ----------- GetSVGDocumentにおける最適化 Modified Paths: -------------- branches/07x/074/org/w3c/dom/svg.js Modified: branches/07x/074/org/w3c/dom/svg.js =================================================================== --- branches/07x/074/org/w3c/dom/svg.js 2011-04-02 14:30:17 UTC (rev 2549) +++ branches/07x/074/org/w3c/dom/svg.js 2011-04-02 14:35:45 UTC (rev 2550) @@ -1819,16 +1819,17 @@ } //以下、テキストの位置を修正 text = s.documentElement._tar.getElementsByTagName("div"); + bl += "px"; + bt += "px"; for (var i=0,textli=text.length;i<textli;++i) { var texti = text[i]; if (texti.firstChild.nodeName !== "shape") { //radialGradient用のdiv要素でないならば var tis = texti.style; - tis.left = _parseFloat(tis.left) + bl + "px"; - tis.top = _parseFloat(tis.top) + bt + "px"; - tis = null; + tis.left = _parseFloat(tis.left) + bl; + tis.top = _parseFloat(tis.top) + bt; } } - s.defaultView._cache = s.defaultView._cache_ele = null; + tis = s.defaultView._cache = s.defaultView._cache_ele = null; evt = objei = tar = tview = objw = objh = n = att = sdt = sp = dcp = backr = w = h = sw = sh = style = fontSize = null; trstyle = tpstyle = backrs = viewWidth = viewHeight = text = bfl = bft = bl = bt = backdown = backright = null; text = _parseFloat = null;