svnno****@sourc*****
svnno****@sourc*****
2011年 10月 31日 (月) 21:15:54 JST
Revision: 3054 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=3054 Author: dhrname Date: 2011-10-31 21:15:53 +0900 (Mon, 31 Oct 2011) Log Message: ----------- SVGAnimateColorElementインターフェースのbeginEventについて、処理がワンテンポ遅れていた問題を解消 Modified Paths: -------------- branches/08x/088/org/w3c/dom/svg.js Modified: branches/08x/088/org/w3c/dom/svg.js =================================================================== --- branches/08x/088/org/w3c/dom/svg.js 2011-10-31 11:58:52 UTC (rev 3053) +++ branches/08x/088/org/w3c/dom/svg.js 2011-10-31 12:15:53 UTC (rev 3054) @@ -5718,9 +5718,6 @@ attrName = tar.getAttributeNS(null, "attributeName"), style = tar.ownerDocument.getOverrideStyle(tar.targetElement, ""), fstyle = tar.ownerDocument.defaultView.getComputedStyle(tar.targetElement, ""); - if (tar._values[0] !== null) { - style.setProperty(attrName, tar._values[0], null); - } tar._frame = function() { var _tar = tar; /*公式に関しては、SMIL2.0 Animation Moduleの単純アニメーション関数の項を参照 @@ -5758,13 +5755,16 @@ b = fb + (tc.blue.getFloatValue(num) - fb) * durd; style.setProperty(attrName, "rgb(" +Math.ceil(r)+ "," +Math.ceil(g)+ "," +Math.ceil(b)+ ")", null); _tar = d = n = tg = fc = tc = fr = fg = fb = num = r = g = b = void 0; - } + }; + tar._frame(); }, false); this.addEventListener("endEvent", function(evt) { var tar = evt.target; - var evtt = tar.ownerDocument.createEvent("MutationEvents"); - evtt.initMutationEvent("DOMNodeInsertedIntoDocument", false, false, null, null, null, null, null); - tar.targetElement.dispatchEvent(evtt); + if (!fill || (fill === "remove")) { + var evtt = tar.ownerDocument.createEvent("MutationEvents"); + evtt.initMutationEvent("DOMNodeInsertedIntoDocument", false, false, null, null, null, null, null); + tar.targetElement.dispatchEvent(evtt); + } tar._frame = evt = evtt = void 0; }, false); this.addEventListener("repeatEvent", function(evt) {