svnno****@sourc*****
svnno****@sourc*****
2010年 11月 12日 (金) 21:09:32 JST
Revision: 2139
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2139
Author: dhrname
Date: 2010-11-12 21:09:32 +0900 (Fri, 12 Nov 2010)
Log Message:
-----------
Test Suiteの「paths-data-13-t」をパスするように、H,h,V,vコマンドを修正
Modified Paths:
--------------
branches/06x/063/org/w3c/dom/svg.js
Modified: branches/06x/063/org/w3c/dom/svg.js
===================================================================
--- branches/06x/063/org/w3c/dom/svg.js 2010-11-12 11:57:25 UTC (rev 2138)
+++ branches/06x/063/org/w3c/dom/svg.js 2010-11-12 12:09:32 UTC (rev 2139)
@@ -2545,8 +2545,10 @@
}
} else if (dii === "H" || dii === "h") {
tnl.appendItem(tar.createSVGPathSegLinetoAbs(cx, ry));
+ cy = ry; //勝手にti.yが0としているため
} else if (dii === "V" || dii === "v") {
tnl.appendItem(tar.createSVGPathSegLinetoAbs(rx, cy));
+ cx = rx; //勝手にti.yが0としているため
}
}
ti = dii = ts = null;
@@ -2866,7 +2868,7 @@
};
/*SVGPathSegLinetoVerticalAbs*/ SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function(/*float*/ y ) {
var s = new SVGPathSegLinetoVerticalAbs();
- s.x = 0; //DOMでは指定されていないが、変換処理が楽なので用いる
+ s.x = 0;
s.y = y;
return s;
};