From: dhrname Date: Sat, 3 Oct 2015 12:37:07 +0000 (+0900) Subject: Add a comment to the object X-Git-Tag: version22~70 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5b003b1576f6893db9a993fd6e51801382c9bd66;p=sie%2Fsie.git Add a comment to the object --- diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index 5e93eae..b3bbda7 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -465,6 +465,8 @@ base("$frame").mix ( { this.begin = this.eventOffset + this.$frame.currentFrame - Math.floor( (Date.now() - evt.timeStamp) * this.fpms ); var s = this.$begin.$activate; s.end = this.begin; + /*未解決だったendの値が、イベントの発生により、解決して再定義されたとき、 + * $activateオブジェクトを使って活動継続時間を再計算する*/ this.$begin.activeTime = s.call(); s = void 0; } @@ -817,6 +819,7 @@ base("$calcMode").up("$attribute").mix( { max: this._getAttr("max", "indefinite") } ) } ).parse(); + frame.$activate.end.$begin = frame; if (frame.isResolved) { /*開始時間が初期化されてしまうのを防ぐ*/ var cacheBegin = frame.begin; diff --git a/tool/Spec/spec/SvgDomSpec.js b/tool/Spec/spec/SvgDomSpec.js index 6e7f226..8c35333 100644 --- a/tool/Spec/spec/SvgDomSpec.js +++ b/tool/Spec/spec/SvgDomSpec.js @@ -4244,7 +4244,7 @@ describe("SMIL Animation Spec", function() { evt.initMouseEvent("mousedown",true, true, window, 0, 0, 0, 0, 0, false, false, false, false,0, p); p.addEventListener("mousedown", function(evt) { frame.setFrame(24); - expect(evt.target.getAttributeNS(null, "fill") || null).toBe("rgb(0, 0, 0)"); + expect(evt.target.getAttributeNS(null, "fill") || null).toBe("rgb(10, 10, 1)"); }, false ); frame.setFrame(0); p.dispatchEvent(evt);