From: dhrname Date: Thu, 11 Jun 2015 14:29:56 +0000 (+0900) Subject: Support to the animate element X-Git-Tag: version22~149 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=466a7106ca757f70912df09aa835cbe9e9a959b7;p=sie%2Fsie.git Support to the animate element --- diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index 58282f8..cd953d1 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -1015,6 +1015,7 @@ base("$calcMode").up("$attribute").mix( { return rgbColor; }; } + ele && (this.mode = ele.getAttributeNS(null, "calcMode") || "linear") if (to) { this._funcs = to.map( function(x) { x.to.string = toRGB(x.to.string); @@ -1032,8 +1033,25 @@ base("$calcMode").up("$attribute").mix( { function getDocument() { - var svg = document.getElementsByTagName("object").item(0), - svgDoc = svg && svg.getSVGDocument(); + var svg = document.getElementsByTagName("object"), + svgns = "http://www.w3.org/2000/svg"; + for (var i=0;i