svnno****@sourc*****
svnno****@sourc*****
2011年 3月 7日 (月) 20:10:55 JST
Revision: 2464 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2464 Author: dhrname Date: 2011-03-07 20:10:55 +0900 (Mon, 07 Mar 2011) Log Message: ----------- SVGLengthのnewValueInSpecifiedメソッドに関して、パーセントとemの単位の処理を修正 Modified Paths: -------------- branches/07x/072/org/w3c/dom/svg.js Modified: branches/07x/072/org/w3c/dom/svg.js =================================================================== --- branches/07x/072/org/w3c/dom/svg.js 2011-03-07 11:09:13 UTC (rev 2463) +++ branches/07x/072/org/w3c/dom/svg.js 2011-03-07 11:10:55 UTC (rev 2464) @@ -519,9 +519,10 @@ n = this._percent; _s = "%" } else if (unitType === SVGLength.SVG_LENGTHTYPE_EMS) { - n = this._percent * 100; + n = this._fontSize; _s = "em"; } else if (unitType === SVGLength.SVG_LENGTHTYPE_EXS) { + n = this._fontSize * 0.55; _s = "ex"; } else if (unitType === SVGLength.SVG_LENGTHTYPE_CM) { n = 35.43307;