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

Issue 1642463004: Extended error reporting for SVG path parsing (Closed)

Created:
4 years, 11 months ago by fs
Modified:
4 years, 11 months ago
Reviewers:
pdr., f(malita)
CC:
fs, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, krit, f(malita), gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extended error reporting for SVG path parsing Adds reporting of errors for the errors detected: * Missing starting moveto * Missing command verb * Unexpected input type (number, arc flag) The parsing helper parseArcFlag() is adjusted to not consume any character on error. BUG=231612 Committed: https://crrev.com/0965f08da8b60d22c1c91668113b40800909e5ec Cr-Commit-Position: refs/heads/master@{#371849}

Patch Set 1 #

Total comments: 4

Patch Set 2 : "path flag" -> "arc flag" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -25 lines) Patch
M third_party/WebKit/LayoutTests/svg/custom/path-arc-invalid-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/svg/parser/svg-path-error-reporting.html View 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/parser/svg-path-error-reporting-expected.txt View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGParserUtilities.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGParsingError.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGParsingError.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPath.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp View 1 chunk +43 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathStringSource.h View 4 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathStringSource.cpp View 6 chunks +38 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathUtilities.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
fs
4 years, 11 months ago (2016-01-27 14:23:18 UTC) #3
f(malita)
lgtm https://codereview.chromium.org/1642463004/diff/1/third_party/WebKit/Source/core/svg/SVGParsingError.cpp File third_party/WebKit/Source/core/svg/SVGParsingError.cpp (right): https://codereview.chromium.org/1642463004/diff/1/third_party/WebKit/Source/core/svg/SVGParsingError.cpp#newcode32 third_party/WebKit/Source/core/svg/SVGParsingError.cpp:32: return std::make_pair("Expected path flag ('0' or '1'), ", ...
4 years, 11 months ago (2016-01-27 14:51:13 UTC) #4
fs
https://codereview.chromium.org/1642463004/diff/1/third_party/WebKit/Source/core/svg/SVGParsingError.cpp File third_party/WebKit/Source/core/svg/SVGParsingError.cpp (right): https://codereview.chromium.org/1642463004/diff/1/third_party/WebKit/Source/core/svg/SVGParsingError.cpp#newcode32 third_party/WebKit/Source/core/svg/SVGParsingError.cpp:32: return std::make_pair("Expected path flag ('0' or '1'), ", "."); ...
4 years, 11 months ago (2016-01-27 14:57:56 UTC) #5
pdr.
On 2016/01/27 at 14:57:56, fs wrote: > https://codereview.chromium.org/1642463004/diff/1/third_party/WebKit/Source/core/svg/SVGParsingError.cpp > File third_party/WebKit/Source/core/svg/SVGParsingError.cpp (right): > > https://codereview.chromium.org/1642463004/diff/1/third_party/WebKit/Source/core/svg/SVGParsingError.cpp#newcode32 ...
4 years, 11 months ago (2016-01-27 19:43:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1642463004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1642463004/20001
4 years, 11 months ago (2016-01-27 19:48:48 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-27 19:56:22 UTC) #10
commit-bot: I haz the power
4 years, 11 months ago (2016-01-27 19:58:27 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0965f08da8b60d22c1c91668113b40800909e5ec
Cr-Commit-Position: refs/heads/master@{#371849}

Powered by Google App Engine
This is Rietveld 408576698