[Sie-announce] SIEコード [2869] 関数_caの変数を整理

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2011年 8月 13日 (土) 20:28:39 JST


Revision: 2869
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2869
Author:   dhrname
Date:     2011-08-13 20:28:39 +0900 (Sat, 13 Aug 2011)

Log Message:
-----------
関数_caの変数を整理

Modified Paths:
--------------
    branches/08x/083/org/w3c/dom/svg.js

Modified: branches/08x/083/org/w3c/dom/svg.js
===================================================================
--- branches/08x/083/org/w3c/dom/svg.js	2011-08-13 11:21:35 UTC (rev 2868)
+++ branches/08x/083/org/w3c/dom/svg.js	2011-08-13 11:28:39 UTC (rev 2869)
@@ -1691,8 +1691,9 @@
      */
     var dsd = new Date();
     var ifr = this._tar.previousSibling,
+        ifcw = ifr.contentWindow,
         _doc;
-    if (ifr.contentWindow) {
+    if (ifcw) {
       ifr.contentWindow.screen.updateInterval = 999;
       _doc = ifr.contentWindow.document;
       _doc.write("");
@@ -1721,7 +1722,7 @@
         sp = _doc.createElement("div"),
         dcp = _doc.createElement("v:group"),
         backr = _doc.createElement("v:rect"),
-        style, fontSize, w, h, sw, sh, trstyle, tpstyle, backrs,
+        style, fontSize, sw, sh, trstyle, tpstyle, backrs,
         bfl, bft, bl, text,
         _parseFloat = parseFloat,
         ndoc = NAIBU.doc,
@@ -1729,7 +1730,7 @@
     oba.setAttribute("id","_NAIBU_outline");
     _doc.body.appendChild(oba);
     sp.style.margin = "-2px,-0px,0px,-2px"
-    if (ifr.contentWindow) {
+    if (ifcw) {
        _doc.body.style.backgroundColor = objei.parentNode.currentStyle.backgroundColor;
     }
     s._document_ = _doc; //_document_プロパティはradialGradient要素やNAIBU._setPaintなどで使う
@@ -1793,7 +1794,7 @@
     dcp.style.height = tview.height+ "px";
     dcp.coordsize = tview.width+ " " +tview.height;
     sp.appendChild(dcp);
-    if (ifr.contentWindow) {
+    if (ifcw) {
       _doc.body.appendChild(sp);
     } else {
       this._tar.parentNode.insertBefore(sp, this._tar);
@@ -1814,13 +1815,11 @@
     tar.y.baseVal._emToUnit(fontSize);
     tar.width.baseVal._emToUnit(fontSize);
     tar.height.baseVal._emToUnit(fontSize);
-    w = tview.width;
-    h = tview.height;
     sw = tar.width.baseVal.value;
     sh = tar.height.baseVal.value;
     backr.style.position = "absolute";
-    backr.style.width = w+ "px";
-    backr.style.height = h+ "px";
+    backr.style.width = tview.width+ "px";
+    backr.style.height = tview.height+ "px";
     backr.style.zIndex = -1;
     backr.stroked = "false";
     backr.filled = "false";
@@ -1871,14 +1870,14 @@
       }
     }
     s.defaultView._cache = s.defaultView._cache_ele = null;
-    oba = _doc = evt = _doc = objei = tar = tview = objw = objh = n = att = sdt = sp = dcp = backr = w = h = sw = sh = style = fontSize = null;
+    oba = _doc = evt = _doc = objei = tar = tview = objw = objh = n = att = sdt = sp = dcp = backr = sw = sh = style = fontSize = null;
     trstyle = tpstyle = backrs = text = texti = i = bfl = bft = bl = bt = text = _parseFloat = null;
     /*IEのメモリリーク対策として、空関数を入力*/
     this.xmlhttp.onreadystatechange = NAIBU.emptyFunction;
     alert(+(new Date()) - dsd.getTime())
     if (this._next) {
-      ifr.contentWindow && (ifr.contentWindow.screen.updateInterval = 0);
-      ifr = s = null;
+      ifcw && (ifr.contentWindow.screen.updateInterval = 0);
+      ifr = ifcw = s = null;
       this._next._init();
     } else {
       /*全要素の読み込みが終了した場合*/
@@ -1912,9 +1911,9 @@
           }
           dbuf = n = dbufli = null;
         }, 1);
-        ifr = s = null;
+        ifr = ifcw = s = null;
       } else {
-        ifr = s = null;
+        ifr = ifcw = s = null;
         NAIBU.Time.start();
       }
       delete NAIBU.doc;




Sie-announce メーリングリストの案内
アーカイブの一覧に戻る