OSDN Git Service

オブジェクトをsvg.jsにも適用
authordhrname <sie-developers@lists.sourceforge.jp>
Sun, 27 Jul 2014 10:15:19 +0000 (19:15 +0900)
committerdhrname <sie-developers@lists.sourceforge.jp>
Sun, 27 Jul 2014 10:15:19 +0000 (19:15 +0900)
org/w3c/dom/svg.js

index 3e4b7de..981db06 100644 (file)
@@ -1146,7 +1146,7 @@ base("DOMImplementation").mix ( function(_) {
 _._createDocument = _.createDocument;\r
 _.createDocument = function() {\r
   return this._createDocument.apply(this, arguments).mix(function() {\r
-    DocumentStyle.call(this);\r
+    base("$StyleSheet").DocumentStyle.call(this);\r
     SVGStylable.call(this);\r
     /*readonly DOMString*/     this.title    = "";\r
     /*readonly DOMString*/     this.referrer = document.referrer;\r
@@ -2042,7 +2042,7 @@ NAIBU.emptyFunction = function() {};
  */\r
 function SVGStyleElement(_doc) {\r
   SVGElement.apply(this);\r
-  LinkStyle.apply(this);\r
+  base("$StyleSheet").LinkStyle.apply(this);\r
   /*LinkStyleに関しては、以下の仕様を参照のこと。なお、これはSVG DOMでは継承されていないので要注意。\r
    *CSS2 1. Document Object Model Style Sheets\r
    * 1.3. Document Extensions\r