Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1042)

Issue 22798002: Make SVGTextContentElement methods behave consistently with Firefox and IE (Closed)

Created:
7 years, 4 months ago by do-not-use
Modified:
7 years, 4 months ago
CC:
blink-reviews, eae+blinkwatch, dglazkov+blink, f(malita), pdr, Stephen Chennney, lgombos, jsbell
Visibility:
Public.

Description

Make 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -19 lines) Patch
M LayoutTests/svg/custom/getSubStringLength-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/svg/custom/script-tests/getSubStringLength.js View 1 chunk +4 lines, -4 lines 0 comments Download
M LayoutTests/svg/custom/script-tests/selectSubString.js View 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/svg/custom/selectSubString-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/svg/text/svgtextcontentelement-methods-parameters.html View 1 1 chunk +90 lines, -0 lines 0 comments Download
A LayoutTests/svg/text/svgtextcontentelement-methods-parameters-expected.txt View 1 1 chunk +47 lines, -0 lines 0 comments Download
M Source/core/svg/SVGTextContentElement.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/svg/SVGTextContentElement.idl View 1 chunk +7 lines, -9 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
do-not-use
I validated the behavior of other browsers using: http://jsfiddle.net/hC7Cb/15/
7 years, 4 months ago (2013-08-12 08:59:12 UTC) #1
arv (Not doing code reviews)
Typo in CL description passed in arguments or passed as argument
7 years, 4 months ago (2013-08-12 13:42:21 UTC) #2
arv (Not doing code reviews)
One more CL description issue "where the wrong result would return the wrong result" now ...
7 years, 4 months ago (2013-08-12 13:42:57 UTC) #3
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/22798002/diff/1/LayoutTests/svg/text/svgtextcontentelement-methods-parameters.html File LayoutTests/svg/text/svgtextcontentelement-methods-parameters.html (right): https://codereview.chromium.org/22798002/diff/1/LayoutTests/svg/text/svgtextcontentelement-methods-parameters.html#newcode25 LayoutTests/svg/text/svgtextcontentelement-methods-parameters.html:25: actual_point = _actual_point; Do not use underscores in ...
7 years, 4 months ago (2013-08-12 13:47:21 UTC) #4
do-not-use
On 2013/08/12 13:47:21, arv wrote: > LGTM > > https://codereview.chromium.org/22798002/diff/1/LayoutTests/svg/text/svgtextcontentelement-methods-parameters.html > File LayoutTests/svg/text/svgtextcontentelement-methods-parameters.html (right): > ...
7 years, 4 months ago (2013-08-12 13:52:54 UTC) #5
do-not-use
+jsbell
7 years, 4 months ago (2013-08-12 20:57:18 UTC) #6
do-not-use
+jochen
7 years, 4 months ago (2013-08-13 10:50:12 UTC) #7
jochen (gone - plz use gerrit)
lgtm
7 years, 4 months ago (2013-08-13 13:57:35 UTC) #8
pdr.
On 2013/08/13 13:57:35, jochen wrote: > lgtm LGTM3
7 years, 4 months ago (2013-08-13 16:41:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/22798002/8001
7 years, 4 months ago (2013-08-13 16:42:48 UTC) #10
commit-bot: I haz the power
7 years, 4 months ago (2013-08-13 17:58:09 UTC) #11
Message was sent while issue was closed.
Change committed as 156036

Powered by Google App Engine
This is Rietveld 408576698