svnno****@sourc*****
svnno****@sourc*****
2011年 2月 5日 (土) 20:50:51 JST
Revision: 2367 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2367 Author: dhrname Date: 2011-02-05 20:50:51 +0900 (Sat, 05 Feb 2011) Log Message: ----------- SVGPathElementにおいて、parseFloatの使用をやめてビット演算に変えることで軽量化 Modified Paths: -------------- branches/07x/070/org/w3c/dom/svg.js Modified: branches/07x/070/org/w3c/dom/svg.js =================================================================== --- branches/07x/070/org/w3c/dom/svg.js 2011-02-05 11:36:48 UTC (rev 2366) +++ branches/07x/070/org/w3c/dom/svg.js 2011-02-05 11:50:51 UTC (rev 2367) @@ -2374,7 +2374,7 @@ * *SVG1.1 「8.3.9 The grammar for path data」の項目にある最後の文章を参照 */ - var tnl = tar.normalizedPathSegList, tlist = tar.pathSegList, D = [], _parseFloat = parseFloat; + var tnl = tar.normalizedPathSegList, tlist = tar.pathSegList, D = []; if (tnl.numberOfItems > 0) { tnl.clear(); tlist.clear(); @@ -2394,7 +2394,7 @@ for (var i=0, dli=dd.length;i<dli;++i) { D[i] = dd[i].match(sgs); for (var j=1, dili=D[i].length;j<dili;++j) { - D[i][j] = _parseFloat(D[i][j]); //_parseFloatは高速化のためのAlias + D[i][j] = (D[i][j]) | 0; } } sgs = dd = null;