[Sie-announce] SIEコード [2587] SVGGradientElementにおいて、VML要素の設定を、setAttributeメソッドから、setterプロパティに変更

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 4月 10日 (日) 22:18:08 JST


Revision: 2587
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2587
Author:   dhrname
Date:     2011-04-10 22:18:08 +0900 (Sun, 10 Apr 2011)

Log Message:
-----------
SVGGradientElementにおいて、VML要素の設定を、setAttributeメソッドから、setterプロパティに変更

Modified Paths:
--------------
    branches/07x/075/org/w3c/dom/svg.js

Modified: branches/07x/075/org/w3c/dom/svg.js
===================================================================
--- branches/07x/075/org/w3c/dom/svg.js	2011-04-10 13:11:50 UTC (rev 2586)
+++ branches/07x/075/org/w3c/dom/svg.js	2011-04-10 13:18:08 UTC (rev 2587)
@@ -4357,13 +4357,13 @@
       colors[i] = stop.offset.baseVal + " " + ci;
       opacity[i] = (sstyle.getPropertyValue("stop-opacity") || 1) * t.getPropertyValue("fill-opacity") * t.getPropertyValue("opacity");
     }
-    ele.setAttribute("method", "none");
-    ele.setAttribute("color",  color[0]);
-    ele.setAttribute("color2", color[length-1]);
-    ele.setAttribute("colors", colors.join(","));
+    ele["method"] = "none";
+    ele["color"] = color[0];
+    ele["color2"] = color[length-1];
+    ele["colors"] = colors.join(",");
     // When colors attribute is used, the meanings of opacity and o:opacity2 are reversed.
-    ele.setAttribute("opacity", opacity[length-1]+ "");
-    ele.setAttribute("o:opacity2", opacity[0]+ "");
+    ele["opacity"] = opacity[length-1]+ "";
+    ele["o:opacity2"] = opacity[0]+ "";
     /*SVGRadialGradientElementインターフェースで利用する*/
     grad._color = color;
     grad = grad2 = ele = stops = length = color = colors = opacity = evt = t = href = stop = sstyle = ci = null;




Sie-announce メーリングリストの案内
Back to archive index