• R/O
  • HTTP
  • SSH
  • HTTPS

sie: コミット

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


コミットメタ情報

リビジョンc73ce92b05bef13a01fc08a35bb2450221abfa38 (tree)
日時2015-09-03 22:55:35
作者dhrname <dhrname@user...>
コミッターdhrname

ログメッセージ

Modify a listener method of the object

変更サマリ

差分

--- a/org/w3c/dom/smil.js
+++ b/org/w3c/dom/smil.js
@@ -321,6 +321,11 @@ base("$frame").mix ( {
321321 s.begin = this.begin;
322322 this.activeTime = s.call();
323323 this.simpleDuration = s.simpleDur;
324+ if (!this.isResolved && (this.activeTime !== 0)) {
325+ /*イベントでこのリスナーが呼び出されたとき
326+ * 活動継続時間が未定義でも、set要素はアニメーションを開始する*/
327+ this.activeTime = this.activeTime || this.$frame.activeTime;
328+ }
324329 s = void 0;
325330 this.$frame.addLine(this);
326331 }
--- a/tool/Spec/spec/SvgDomSpec.js
+++ b/tool/Spec/spec/SvgDomSpec.js
@@ -2442,6 +2442,7 @@ describe("SMIL Animation Spec", function() {
24422442 } );
24432443 /*境界条件を調べておく (limit value analysis)*/
24442444 it("should be this for the value (limit value analysis)", function() {
2445+ obj.isResolved = true;
24452446 obj.listener();
24462447 expect(obj.begin).toBe(0);
24472448
@@ -2451,7 +2452,17 @@ describe("SMIL Animation Spec", function() {
24512452 expect(obj.begin).toBe(0);
24522453 expect(obj.activeTime).toBeNull();
24532454 expect(obj.timelines.length).toBe(0);
2454-
2455+
2456+ obj.isResolved = false;
2457+ obj.listener( {
2458+ timeStamp: Date.now()
2459+ } );
2460+ expect(obj.begin).toBe(0);
2461+ expect(obj.activeTime).toBe(base("$frame").activeTime);
2462+ expect(obj.timelines.length).toBe(1);
2463+ /*配列を初期化*/
2464+ obj.timelines.length = 0;
2465+
24552466 obj.up().mix( {
24562467 begin: 1,
24572468 eventOffset: 1,
旧リポジトリブラウザで表示