svnno****@sourc*****
svnno****@sourc*****
2011年 5月 24日 (火) 20:42:17 JST
Revision: 2703 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2703 Author: dhrname Date: 2011-05-24 20:42:17 +0900 (Tue, 24 May 2011) Log Message: ----------- SVGPathElementのif文の順序を変えることで最適化 Modified Paths: -------------- branches/07x/078/org/w3c/dom/svg.js Modified: branches/07x/078/org/w3c/dom/svg.js =================================================================== --- branches/07x/078/org/w3c/dom/svg.js 2011-05-24 11:37:39 UTC (rev 2702) +++ branches/07x/078/org/w3c/dom/svg.js 2011-05-24 11:42:17 UTC (rev 2703) @@ -2660,14 +2660,14 @@ } else if (isL[dii]) { s = tar.createSVGPathSegLinetoAbs(+di[j], +di[j+1]); ++j; - } else if (dii === "A") { - s = tar.createSVGPathSegArcAbs(+di[j+5], +di[j+6], +di[j], +di[j+1], +di[j+2], +di[j+3], +di[j+4]); - j += 6; } else if (isM[dii]) { s = tar.createSVGPathSegMovetoAbs(+di[j], +di[j+1]); ++j; } else if (isZ[dii]) { s = tar.createSVGPathSegClosePath(); + } else if (dii === "A") { + s = tar.createSVGPathSegArcAbs(+di[j+5], +di[j+6], +di[j], +di[j+1], +di[j+2], +di[j+3], +di[j+4]); + j += 6; } else if (dii === "m") { s = tar.createSVGPathSegMovetoRel(+di[j], +di[j+1]); ++j;