OSDN Git Service

set要素のインターフェースをbase関数で表現
authordhrname <sie-developers@lists.sourceforge.jp>
Sun, 9 Nov 2014 14:29:56 +0000 (23:29 +0900)
committerdhrname <sie-developers@lists.sourceforge.jp>
Sun, 9 Nov 2014 14:29:56 +0000 (23:29 +0900)
org/w3c/dom/svg.js

index 20ba0ec..4890e79 100644 (file)
@@ -5745,8 +5745,10 @@ base.$1["http://www.w3.org/2000/svganimate"]
   }, false);\r
 } );\r
 \r
-function SVGSetElement(){\r
-  SVGAnimationElement.apply(this);\r
+/*set要素はanimate要素を流用する*/\r
+base.$1["http://www.w3.org/2000/svgset"] = base.$1["http://www.w3.org/2000/svganimate"].up()\r
+ .on("initialize", function (_doc) {\r
+  this.SVGAnimationElement();\r
   NAIBU.Clip[NAIBU.Clip.length] = this;\r
   this._to = "";\r
   this.addEventListener("DOMAttrModified", function(evt) {\r
@@ -5814,8 +5816,7 @@ function SVGSetElement(){
   this.addEventListener("repeatEvent", function(evt) {\r
     var tar = evt.target, attrName = tar.getAttributeNS(null, "attributeName"), style = tar.ownerDocument.defaultView.getComputedStyle(tar.targetElement, "");\r
   }, false);\r
-};\r
-SVGSetElement.prototype = Object._create(SVGAnimationElement);\r
+} );\r
 \r
 /*animateMotion要素はanimate要素を流用する*/\r
 base.$1["http://www.w3.org/2000/svganimateMotion"] = base.$1["http://www.w3.org/2000/svganimate"].up()\r
@@ -5954,12 +5955,14 @@ base.$1["http://www.w3.org/2000/svganimateMotion"] = base.$1["http://www.w3.org/
   }, false);\r
 } )\r
 \r
-function SVGMPathElement() /* :\r
+base.$1.up("http://www.w3.org/2000/svgmpath")\r
+ .on("initialize", function () {\r
+/* :\r
                 SVGElement,\r
                 SVGURIReference,\r
                 SVGExternalResourcesRequired*/ {\r
   SVGURIReference.apply(this);\r
-};\r
+} );\r
 \r
 /*animateColor要素はanimate要素を流用する*/\r
 base.$1["http://www.w3.org/2000/svganimateColor"] = base.$1["http://www.w3.org/2000/svganimate"].up()\r
@@ -6280,9 +6283,7 @@ base("DOMImplementation")["http://www.w3.org/2000/svg"] = {
   foreignObject:   SVGForeignObjectElement,\r
   marker:          SVGMarkerElement,\r
   mask:            SVGMaskElement,\r
-  mpath:           SVGMPathElement,\r
   script:          SVGScriptElement,\r
-  "set":             SVGSetElement,\r
   style:           SVGStyleElement,\r
   "switch":        SVGSwitchElement,\r
   "symbol":        SVGSymbolElement,\r