• R/O
  • HTTP
  • SSH
  • HTTPS

sie: コミット

ブラウザでSVGを表示するSIEの開発 (SIE - to display SVG on legacy browsers)


コミットメタ情報

リビジョン0489d85aad56a49c8f9dc1fb76fd470f96a09dd1 (tree)
日時2016-04-07 20:02:14
作者dhrname <dhrname@user...>
コミッターdhrname

ログメッセージ

Remove the isEnd property from the object

変更サマリ

差分

--- a/org/w3c/dom/smil.js
+++ b/org/w3c/dom/smil.js
@@ -1084,11 +1084,8 @@ base("$calcMode").up("$attribute").mix( {
10841084 this.setAttribute(this.to);
10851085 },
10861086
1087- /*アニメーションが終了したかどうか*/
1088- isEnd: false,
1089-
10901087 /*アニメーション中かどうかの判別
1091- * 1, idling アニメがまだ始まっていない待機状態
1088+ * 1, idling アニメがまだ始まっていない待機状態 (規定値)
10921089 * 2, playing アニメーションの再生中
10931090 */
10941091 state: "idling",
@@ -1099,16 +1096,16 @@ base("$calcMode").up("$attribute").mix( {
10991096 /*アニメが終了した際の後処理
11001097 * 終了処理をしたいときは、falseを値として返す*/
11011098 _setEndFrame: function(frame) {
1102- var line = this.timeline;
1103- if (!line.isResolved || isNaN(line.begin + line.activeTime)) {
1099+ var line = this.timeline,
1100+ end = line.begin + line.activeTime;
1101+ if (!line.isResolved || isNaN(end)) {
11041102 /*未解決など問題が発生したとき*/
11051103 line = frame = void 0;
11061104 return true;
11071105 } else if (
11081106 ( ( frame < line.begin )
1109- || ( (line.begin + line.activeTime) <= frame )
1107+ || ( (end) <= frame )
11101108 ) && (this.state === "playing") ) {
1111- this.isEnd = true;
11121109 /*removeの場合、アニメーションを凍結せずに、もとに戻す*/
11131110 if (this.fill === "remove") {
11141111 this.removeAttribute();
@@ -1152,8 +1149,8 @@ base("$calcMode").up("$attribute").mix( {
11521149 }
11531150 );
11541151 }
1155- /*アニメーションが再起動する可能性もあるため、isEndプロパティはここで初期化*/
1156- this.isEnd = false;
1152+ /*アニメーションが再起動する可能性もあるため、stateプロパティはここで初期化*/
1153+ this.state = "idling";
11571154 line = thisele = void 0;
11581155 }
11591156 }).up("$animateElement").mix( {
旧リポジトリブラウザで表示