DescriptionMake SVGTextContentElement methods behave consistently with Firefox and IE
Make SVGTextContentElement methods behave consistently with Firefox 23 and
IE10:
- We should not throw when negative values are passed in arguments as long
as they wrap to a valid positive index.
- Arguments should be mandatory
Also fixed a bug in SVGTextContentElement.getSubStringLength() where the
wrong result would be returned if the nchars argument was
too large due to an overflow. To avoid this issue, we clamp the nchars
value to (numberOfChars - charnum) similarly to what is done in
SVGTextContentElement.selectSubString(), and as per the specification:
http://www.w3.org/TR/SVG2/text.html#__svg__SVGTextContentElement__getSubStringLength
BUG=268269
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156036
Patch Set 1 #
Total comments: 1
Patch Set 2 : Fix nits #
Messages
Total messages: 11 (0 generated)
|