svnno****@sourc*****
svnno****@sourc*****
2009年 5月 15日 (金) 23:12:49 JST
Revision: 1175 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1175 Author: dhrname Date: 2009-05-15 23:12:49 +0900 (Fri, 15 May 2009) Log Message: ----------- 変数wとhの解放? Modified Paths: -------------- branches/04x/048/sie.js Modified: branches/04x/048/sie.js =================================================================== --- branches/04x/048/sie.js 2009-05-15 13:58:20 UTC (rev 1174) +++ branches/04x/048/sie.js 2009-05-15 14:12:49 UTC (rev 1175) @@ -290,7 +290,7 @@ } catch(e){stlog.add(e,3002);} } while (te); } - nods = name = gname = matrix = cmatrix = null; + nods = name = gname = matrix = cmatrix = w = h = null; } //object要素とembed要素の取得を総括して行う @@ -341,6 +341,7 @@ //以下、ツリーとして処理 this.children = []; this.chset(g,this.transformable, w, h); + w = h = null; } catch(e){stlog.add(e,3144);} return this; } @@ -392,7 +393,7 @@ l[i] = new STTSpanElement(li[i],this.dx,this.dy,this.transformable, w, h); } this.tspan = l; - li = null; + li = w = h = null; } catch(e) {stlog.add(e,129264);} return this; } @@ -459,7 +460,7 @@ } tts.left = ptm.x - tancx; tts.top = ptm.y - tancy; - p = ptm = tancx = tancy = fij = null; + p = ptm = tancx = tancy = fij = w = h = null; this.textLength = textLength; } catch(e) {stlog.add(e,2831);} } @@ -500,7 +501,7 @@ tts.left = ptm.x+ "px"; tts.top = ptm.y+ "px"; } - p = ptm = null; + p = ptm = w = h = null; //ずれの値を返す return {dx : parseFloat(tts.left), dy : parseFloat(tts.top)} } catch(e) {stlog.add(e,304);} @@ -528,7 +529,7 @@ ele.path = dat; ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); - list = pl = plm = dat = this.paint = ttm = this.transformable = null; + list = pl = plm = dat = this.paint = ttm = this.transformable = w = h = null; } catch(e) {stlog.add(e,257);} } @@ -635,7 +636,7 @@ ele.path = dat + " e"; ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); - dat = this.paint = ttm = this.transformable = this.d = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = null; //解放 + dat = this.paint = ttm = this.transformable = this.d = preCom = x = y = x0 = y0 = dx = dy = tma = tmb = tmc = tmd = tme = tmf = w = h = null; //解放 } catch(e) {stlog.add(e,372);} } @@ -701,7 +702,7 @@ ele.path = dat; ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); - dat = F = pl = plm = this.paint = ttm = this.transformable = null; //解放 + dat = F = pl = plm = this.paint = ttm = this.transformable = w = h = null; //解放 } catch(e) {stlog.add(e,406);} } @@ -728,7 +729,7 @@ ele.path = dat; ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); - dat = F = pl = plm = this.paint = ttm = this.transformable = null; //解放 + dat = F = pl = plm = this.paint = ttm = this.transformable = w = h = null; //解放 } catch(e) {stlog.add(e,440);} } @@ -741,6 +742,7 @@ this.r = new STLength(ele.getAttribute("r")); this.paint = new NAIBU.PaintColor(ele); this.transformable = NAIBU.transformToCTM(ele,matrix); + w = h = null; } catch(e) {stlog.add(e,450);} return this; } @@ -761,7 +763,7 @@ ele.path = dat; ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); - dat = list = pl = plm = this.paint = ttm = this.transformable = null; //解放 + dat = list = pl = plm = this.paint = ttm = this.transformable = w = h = null; //解放 } catch(e) {stlog.add(e,479);} } @@ -775,6 +777,7 @@ this.ry = new STLength(ele.getAttribute("ry"), h); this.paint = new NAIBU.PaintColor(ele); this.transformable = NAIBU.transformToCTM(ele,matrix); + w = h = null; } catch(e) {stlog.add(e,490);} return this; } @@ -794,7 +797,7 @@ ele.path = dat; ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); - dat = list = pl = plm = this.paint = ttm = this.transformable = null; //解放 + dat = list = pl = plm = this.paint = ttm = this.transformable = w = h = null; //解放 } catch(e) {stlog.add(e,519);} } @@ -820,6 +823,7 @@ try { this.paint = new NAIBU.PaintColor(rect); this.transformable = NAIBU.transformToCTM(rect,matrix); + w = h = null; } catch(ee) {stlog.add(ee,545);} return this; } @@ -845,7 +849,7 @@ ele.path = dat; ele.coordsize = w + " " + h; this.paint.set(w, h, ttm); - dat = list = pl = plm = this.paint = ttm = this.transformable = null; //解放 + dat = list = pl = plm = this.paint = ttm = this.transformable = w = h = null; //解放 } catch(ee) {stlog.add(ee,576);} } @@ -860,6 +864,7 @@ this.xlink = new NAIBU.XLink(ele); this.paint = new NAIBU.PaintColor(ele); this.transformable = NAIBU.transformToCTM(ele,matrix); + w = h = null return this; } STImage.prototype.set = function imagesets(w,h){ @@ -886,7 +891,7 @@ ttfia.Opacity = parseFloat(this.paint.fillopacity)*100; } this.xlink.set(); - dat = pt = this.xlink = this.paint = ttm = this.transformable = null; //解放 + dat = pt = this.xlink = this.paint = ttm = this.transformable = w = h = null; //解放 } catch(e) {stlog.set(e,21896);} } @@ -907,6 +912,7 @@ tns.coordorgin = "0 0"; this.paint = new NAIBU.PaintColor(this.xlink.resource); this.paint.tar = tns; + w = h = null; return this; } STUseElement.prototype.set = function(){ @@ -1077,6 +1083,7 @@ if (this.cursor !== "default") { this.tar.style.cursor = this.cursor; } + w = h = null; } //色キーワード NAIBU.PaintColor.prototype.keywords = {