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

Issue 262093007: Tighten error checking from SVGLength parsing (Closed)

Created:
6 years, 7 months ago by davve
Modified:
6 years, 7 months ago
Reviewers:
pdr., rwlbuis
CC:
blink-reviews, krit, fs, ed+blinkwatch_opera.com, f(malita), gyuyoung.kim_webkit.org, Stephen Chennney, kouhei+svg_chromium.org, pdr., rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Tighten error checking from SVGLength parsing When test-parsing width, height before mapping them to style for SVGSVGElement and SVGForeignObjectElement, testing for unknown length types is not enough, we must check the exceptionState for errors. This fixes a case where we apply 'inherit' even though we shouldn't, according to spec. Also align SVGForeignObjectElement and SVGSVGElement by always passing along the original string, not the serialized value. As long as only valid lengths are passed along, this shouldn't change behavior but re-generating the string back is unnecessary work. BUG=370017, 308992 R=pdr Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173371

Patch Set 1 #

Total comments: 4

Patch Set 2 : Better consistency in how foreignObject is camelCased #

Patch Set 3 : Update expected file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -6 lines) Patch
A LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html View 1 1 chunk +39 lines, -0 lines 0 comments Download
A LayoutTests/svg/custom/disallow-non-lengths-in-attrs-expected.txt View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M Source/core/svg/SVGForeignObjectElement.cpp View 1 chunk +5 lines, -4 lines 0 comments Download
M Source/core/svg/SVGSVGElement.cpp View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
davve
6 years, 7 months ago (2014-05-05 14:58:20 UTC) #1
pdr.
LGTM with a nit https://codereview.chromium.org/262093007/diff/1/LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html File LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html (right): https://codereview.chromium.org/262093007/diff/1/LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html#newcode34 LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html:34: setWidth('#fo', invalid_width); This won't match ...
6 years, 7 months ago (2014-05-05 16:53:11 UTC) #2
rwlbuis
I had the below question. Also I think your last sentence has a mistake near ...
6 years, 7 months ago (2014-05-05 18:15:50 UTC) #3
davve
https://codereview.chromium.org/262093007/diff/1/LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html File LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html (right): https://codereview.chromium.org/262093007/diff/1/LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html#newcode34 LayoutTests/svg/custom/disallow-non-lengths-in-attrs.html:34: setWidth('#fo', invalid_width); On 2014/05/05 16:53:11, pdr wrote: > This ...
6 years, 7 months ago (2014-05-06 07:05:19 UTC) #4
davve
The CQ bit was checked by davve@opera.com
6 years, 7 months ago (2014-05-06 07:05:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davve@opera.com/262093007/20001
6 years, 7 months ago (2014-05-06 07:05:46 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-06 08:16:53 UTC) #7
davve
The CQ bit was checked by davve@opera.com
6 years, 7 months ago (2014-05-06 08:47:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davve@opera.com/262093007/40001
6 years, 7 months ago (2014-05-06 08:48:10 UTC) #9
commit-bot: I haz the power
6 years, 7 months ago (2014-05-06 09:56:08 UTC) #10
Message was sent while issue was closed.
Change committed as 173371

Powered by Google App Engine
This is Rietveld 408576698