OSDN Git Service

Add a comment to the object
authordhrname <dhrname@users.sourceforge.jp>
Sat, 3 Oct 2015 12:37:07 +0000 (21:37 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Sat, 3 Oct 2015 12:37:07 +0000 (21:37 +0900)
org/w3c/dom/smil.js
tool/Spec/spec/SvgDomSpec.js

index 5e93eae..b3bbda7 100644 (file)
@@ -465,6 +465,8 @@ base("$frame").mix ( {
       this.begin = this.eventOffset + this.$frame.currentFrame - Math.floor( (Date.now() - evt.timeStamp) * this.fpms );\r
       var s = this.$begin.$activate;\r
       s.end = this.begin;\r
+      /*未解決だったendの値が、イベントの発生により、解決して再定義されたとき、\r
+       * $activateオブジェクトを使って活動継続時間を再計算する*/\r
       this.$begin.activeTime = s.call();\r
       s = void 0;\r
     }\r
@@ -817,6 +819,7 @@ base("$calcMode").up("$attribute").mix( {
                     max: this._getAttr("max", "indefinite")\r
                   } )\r
                 } ).parse();\r
+    frame.$activate.end.$begin = frame;\r
     if (frame.isResolved) {\r
       /*開始時間が初期化されてしまうのを防ぐ*/\r
       var cacheBegin = frame.begin;\r
index 6e7f226..8c35333 100644 (file)
@@ -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);\r
         p.addEventListener("mousedown", function(evt) {\r
           frame.setFrame(24);\r
-          expect(evt.target.getAttributeNS(null, "fill") || null).toBe("rgb(0, 0, 0)");\r
+          expect(evt.target.getAttributeNS(null, "fill") || null).toBe("rgb(10, 10, 1)");\r
         }, false );\r
         frame.setFrame(0);\r
         p.dispatchEvent(evt);\r