svnno****@sourc*****
svnno****@sourc*****
2011年 3月 28日 (月) 23:04:14 JST
Revision: 2522 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2522 Author: dhrname Date: 2011-03-28 23:04:14 +0900 (Mon, 28 Mar 2011) Log Message: ----------- SVGAngleのconvertToSpecifiedメソッドを修正 Modified Paths: -------------- branches/07x/074/org/w3c/dom/svg.js Modified: branches/07x/074/org/w3c/dom/svg.js =================================================================== --- branches/07x/074/org/w3c/dom/svg.js 2011-03-28 13:38:04 UTC (rev 2521) +++ branches/07x/074/org/w3c/dom/svg.js 2011-03-28 14:04:14 UTC (rev 2522) @@ -671,7 +671,14 @@ //raises( DOMException ); }, /*void*/ convertToSpecifiedUnits : function (/*in unsigned short*/ unitType ) { + if (this.value === 0) { + this.newValueSpecifiedUnits(unitType, 0); + return; + } + var v = this.value; this.newValueSpecifiedUnits(unitType, this.valueInSpecifiedUnits); + v = v / this.value * this.valueInSpecifiedUnits; + this.newValueSpecifiedUnits(unitType, v); //raises( DOMException ); } };