[Sie-announce] SIEコード [2013]

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 9月 24日 (金) 22:16:16 JST


Revision: 2013
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2013
Author:   dhrname
Date:     2010-09-24 22:16:16 +0900 (Fri, 24 Sep 2010)

Log Message:
-----------


Modified Paths:
--------------
    branches/06x/061/org/w3c/dom/svg.js

Modified: branches/06x/061/org/w3c/dom/svg.js
===================================================================
--- branches/06x/061/org/w3c/dom/svg.js	2010-09-24 13:07:58 UTC (rev 2012)
+++ branches/06x/061/org/w3c/dom/svg.js	2010-09-24 13:16:16 UTC (rev 2013)
@@ -3829,7 +3829,8 @@
       var cx = grad.cx.baseVal.value, cy = grad.cy.baseVal.value;
       var r = rx = ry = grad.r.baseVal.value;
       var tarrect = tar.getBBox();
-      var el = tar.ownerDocument.documentElement.viewBox.baseVal.width, et = tar.ownerDocument.documentElement.viewBox.baseVal.height, er = 0, eb = 0;
+      var vi = tar.ownerDocument.documentElement;
+      var el = vi.width.baseVal.value, et = vi.height.baseVal.value, er = 0, eb = 0;
       var data = tar._tar.path.value;
       var units = grad.getAttributeNS(null, "gradientUnits");
       if (!units || units === "objectBoundingBox") {
@@ -3872,7 +3873,7 @@
       var background = document.createElement("div"), bstyle = background.style;
       bstyle.position = "absolute";
       bstyle.display = "inline-block";
-      var w = tar.ownerDocument.documentElement.viewBox.baseVal.width, h = tar.ownerDocument.documentElement.viewBox.baseVal.height;
+      var w = vi.width.baseVal.value, h = vi.height.baseVal.value;
       bstyle.textAlign = "left"; bstyle.top = "0px"; bstyle.left = "0px"; bstyle.width = w+ "px"; bstyle.height = h+ "px";
       outline.appendChild(background);
       bstyle.filter = "progid:DXImageTransform.Microsoft.Compositor";




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