OSDN Git Service

Modify the object
authordhrname <dhrname@users.sourceforge.jp>
Sat, 15 Oct 2016 12:25:34 +0000 (21:25 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Sat, 15 Oct 2016 12:25:34 +0000 (21:25 +0900)
org/w3c/dom/smil.js

index 15d74b5..52f30de 100644 (file)
@@ -481,6 +481,7 @@ base("$frame").mix ( {
     \r
     /*関数型の呼び出しメソッド\r
      * base.jsのofメソッドを活用して活動継続時間を算出\r
+     * ただし、begin属性とend属性については、別途、$frame.$listで定める\r
      * 計算方法はSMILアニメーション 3.3.4節を参照\r
      * http://www.w3.org/TR/smil-animation/#ComputingActiveDur\r
      */\r
@@ -489,9 +490,7 @@ base("$frame").mix ( {
           dur = this.simpleDur,\r
           isIndefRepeatCount = (this.repeatCount === ind),\r
           isIndefRepeatDur = (this.repeatDur === ind),\r
-          isIndefEnd = (this.end === ind),\r
           isDur = dur || (dur === 0),\r
-          isEnd = this.end || (this.end === 0),\r
           isRepeatCount = this.repeatCount || (this.repeatCount === 0),\r
           isRepeatDur = this.repeatDur || (this.repeatDur === 0),\r
           actList = [],\r
@@ -512,22 +511,15 @@ base("$frame").mix ( {
       if (isRepeatDur && !isIndefRepeatDur) {\r
         actList.push( Math.floor( this.offset(this.repeatDur) * this.fpms) );\r
       }\r
-      if (isEnd && !isIndefEnd) {\r
-        actList.push( this.end - this.begin );\r
-      }\r
       if (isDur && !isRepeatCount && !isRepeatDur) {\r
         /*repeatCountやrepeatDur属性が指定されていない場合*/\r
         actList.push( dur );\r
       }\r
 \r
       /*長くなるため、インライン関数を活用\r
-       * indef関数は活動継続時間が不定かどうか、もし、不定なら真を返す*/\r
+       * indef関数はbeginとend属性を考慮せずに、\r
+       * 活動継続時間が不定かどうか、もし、不定なら真を返す*/\r
       function indef() {\r
-        if(isIndefEnd) {\r
-          return true;\r
-        } else if (isEnd) {\r
-          return false;\r
-        }\r
         return !!( (!isDur && !isRepeatDur)\r
                    || (isIndefRepeatCount && !isRepeatDur)\r
                    || (isIndefRepeatDur && !isRepeatCount)\r