[Sie-announce] SIEコード [2330] animateColor要素でアニメ終了時にプログラムが止まるバグに関する修正について見直し

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 1月 25日 (火) 19:48:47 JST


Revision: 2330
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2330
Author:   dhrname
Date:     2011-01-25 19:48:47 +0900 (Tue, 25 Jan 2011)

Log Message:
-----------
animateColor要素でアニメ終了時にプログラムが止まるバグに関する修正について見直し

Modified Paths:
--------------
    branches/06x/069/org/w3c/dom/svg.js

Modified: branches/06x/069/org/w3c/dom/svg.js
===================================================================
--- branches/06x/069/org/w3c/dom/svg.js	2011-01-25 10:43:01 UTC (rev 2329)
+++ branches/06x/069/org/w3c/dom/svg.js	2011-01-25 10:48:47 UTC (rev 2330)
@@ -4909,7 +4909,7 @@
     var attrName = tar.getAttributeNS(null, "attributeName"), newAttr = tar.targetElement.attributes.getNamedItemNS(null, attrName);
     var ttr = tar.targetElement, tta = ttr[attrName];
     tar._frame = function() {
-      var d = tar.getSimpleDuration() * 0.8, n = tar._valueList.length - 2, tg = tar.getCurrentTime();
+      var d = tar.getSimpleDuration() * 0.8, n = tar._valueList.length - 1, tg = tar.getCurrentTime();
       if ((n !== -1) && (d !== 0) && (tg <= d)) {
         var ii = Math.floor((tg*n) / d);
       } else {
@@ -5160,7 +5160,7 @@
     }
     tar._frame = function() {
       var _tar = tar;
-      var d = _tar.getSimpleDuration() * 0.8, n = _tar._valueList.length - 2, tg = _tar.getCurrentTime();
+      var d = _tar.getSimpleDuration() * 0.8, n = _tar._valueList.length - 1, tg = _tar.getCurrentTime();
       if ((n !== -1) && (d !== 0) && (tg <= d)) {
         var ii = Math.floor((tg*n) / d);
       } else {




Sie-announce メーリングリストの案内
Back to archive index