[Sie-announce] SIEコード [3014] getStartPositionOfCharメソッドの変数を整理して軽量化

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 10月 20日 (木) 20:17:18 JST


Revision: 3014
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=3014
Author:   dhrname
Date:     2011-10-20 20:17:18 +0900 (Thu, 20 Oct 2011)

Log Message:
-----------
getStartPositionOfCharメソッドの変数を整理して軽量化

Modified Paths:
--------------
    branches/08x/087/org/w3c/dom/svg.js

Modified: branches/08x/087/org/w3c/dom/svg.js
===================================================================
--- branches/08x/087/org/w3c/dom/svg.js	2011-10-20 11:05:41 UTC (rev 3013)
+++ branches/08x/087/org/w3c/dom/svg.js	2011-10-20 11:17:18 UTC (rev 3014)
@@ -4009,14 +4009,15 @@
           p = ti.getStartPositionOfChar(ti.getNumberOfChars());
           almx = 0;
           almy = 0;
+          tlist = ti._list;
           if (isYokogaki) {
-            almx = ti._list[ti._list.length-1];
+            almx = tlist[tlist.length-1];
           } else {
-            almy = ti._list[ti._list.length-1];
+            almy = tlist[tlist.length-1];
           }
-          x = ti._list[ti._list.length-3] + almx;
-          y = ti._list[ti._list.length-2] + almy;
-          tar._list = tar._list.concat(ti._list);
+          x = tlist[tlist.length-3] + almx;
+          y = tlist[tlist.length-2] + almy;
+          tar._list = tar._list.concat(tlist);
           tg = ti.getNumberOfChars();
           n += tg;
           chars += tg;




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