svnno****@sourc*****
svnno****@sourc*****
2011年 1月 10日 (月) 22:52:02 JST
Revision: 2289 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2289 Author: dhrname Date: 2011-01-10 22:52:02 +0900 (Mon, 10 Jan 2011) Log Message: ----------- newValueSpecifiedメソッドを修正 Modified Paths: -------------- branches/06x/068/org/w3c/dom/svg.js Modified: branches/06x/068/org/w3c/dom/svg.js =================================================================== --- branches/06x/068/org/w3c/dom/svg.js 2011-01-10 13:34:37 UTC (rev 2288) +++ branches/06x/068/org/w3c/dom/svg.js 2011-01-10 13:52:02 UTC (rev 2289) @@ -519,7 +519,7 @@ */ newValueSpecifiedUnits : function (/*unsigned short*/ unitType, /*float*/ valueInSpecifiedUnits) { var n = 1, _s = ""; //nは各単位から利用単位への変換数値。_sは単位の文字列を表す - if (unitType === SVGLength.SVG_LENGTHTYPE_NUMBER) { + if ((unitType === SVGLength.SVG_LENGTHTYPE_NUMBER) || (unitType === SVGLength.SVG_LENGTHTYPE_PX)) { } else if (unitType === SVGLength.SVG_LENGTHTYPE_PERCENTAGE) { n = this._percent; _s = "%" @@ -543,6 +543,8 @@ } else if (unitType === SVGLength.SVG_LENGTHTYPE_PC) { n = 15; _s = "pc"; + } else { + return new DOMException(DOMException.NOT_SUPPORTED_ERR); } this.unitType = unitType; this.value = valueInSpecifiedUnits * n;