svnno****@sourc*****
svnno****@sourc*****
2011年 2月 25日 (金) 22:27:29 JST
Revision: 2432 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2432 Author: dhrname Date: 2011-02-25 22:27:29 +0900 (Fri, 25 Feb 2011) Log Message: ----------- createSVGLengthメソッドの修正にあわせて、getComputedTextLengthメソッドを修正 Modified Paths: -------------- branches/07x/071/org/w3c/dom/svg.js Modified: branches/07x/071/org/w3c/dom/svg.js =================================================================== --- branches/07x/071/org/w3c/dom/svg.js 2011-02-25 10:43:39 UTC (rev 2431) +++ branches/07x/071/org/w3c/dom/svg.js 2011-02-25 13:27:29 UTC (rev 2432) @@ -3529,7 +3529,7 @@ }; /*float*/ SVGTextContentElement.prototype.getComputedTextLength = function() { var l = this.textLength.baseVal; - if (l.unitType === SVGLength.SVG_LENGTHTYPE_UNKNOWN) { + if ((l.value === 0) && (this.getNumberOfChars() > 0)) { l.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_NUMBER, this.getSubStringLength(0, this.getNumberOfChars())); } l = null;