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

Issue 1643243002: Refactor parsing in SVGTransformList (Closed)

Created:
4 years, 10 months ago by fs
Modified:
4 years, 10 months ago
Reviewers:
pdr., f(malita)
CC:
fs, blink-reviews, chromium-reviews, 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

Refactor parsing in SVGTransformList In preparation for extended error reporting. Split SVGTransform creation out of parseTransformOfType, and then fold the remains into parseTransformParamList - naming the result parseTransformArgumentsForType. Use a Vector with suitable initial-capacity rather than a float[]. Change the handling trailing commas so that it is not triggered when the maximum number of arguments are reached. (This will allow for better errors to be reported in some cases.) Change parseAndSkipTransformType to return the parsed type via the return value rather than an out parameter. Reduce the number of calls to skipOptionalSVGSpaces in parseInternal and parseTransformArgumentsForType, and make better use of the return value from it. Also make SVGTransformList::consolidate() and add() use initialize(...) rather than open-coding it. BUG=231612 Committed: https://crrev.com/440669dd8170823c9643d40060fd666297c73313 Cr-Commit-Position: refs/heads/master@{#372656}

Patch Set 1 #

Patch Set 2 : Restore error-behavior for create(SVGTransformType, const String&) #

Total comments: 13

Patch Set 3 : Fixups #

Patch Set 4 : Fix signedness "issue". #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -89 lines) Patch
M third_party/WebKit/Source/core/svg/SVGTransformList.cpp View 1 2 3 6 chunks +96 lines, -89 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
fs
4 years, 10 months ago (2016-01-29 18:43:19 UTC) #2
f(malita)
LGTM + discretionary nits https://codereview.chromium.org/1643243002/diff/20001/third_party/WebKit/Source/core/svg/SVGTransformList.cpp File third_party/WebKit/Source/core/svg/SVGTransformList.cpp (right): https://codereview.chromium.org/1643243002/diff/20001/third_party/WebKit/Source/core/svg/SVGTransformList.cpp#newcode100 third_party/WebKit/Source/core/svg/SVGTransformList.cpp:100: // These should be kept ...
4 years, 10 months ago (2016-01-29 20:51:14 UTC) #3
fs
https://codereview.chromium.org/1643243002/diff/20001/third_party/WebKit/Source/core/svg/SVGTransformList.cpp File third_party/WebKit/Source/core/svg/SVGTransformList.cpp (right): https://codereview.chromium.org/1643243002/diff/20001/third_party/WebKit/Source/core/svg/SVGTransformList.cpp#newcode100 third_party/WebKit/Source/core/svg/SVGTransformList.cpp:100: // These should be kept in sync with enum ...
4 years, 10 months ago (2016-01-29 21:48:13 UTC) #4
fs
https://codereview.chromium.org/1643243002/diff/20001/third_party/WebKit/Source/core/svg/SVGTransformList.cpp File third_party/WebKit/Source/core/svg/SVGTransformList.cpp (right): https://codereview.chromium.org/1643243002/diff/20001/third_party/WebKit/Source/core/svg/SVGTransformList.cpp#newcode100 third_party/WebKit/Source/core/svg/SVGTransformList.cpp:100: // These should be kept in sync with enum ...
4 years, 10 months ago (2016-02-01 13:36:20 UTC) #5
f(malita)
Thanks, still LGTM :)
4 years, 10 months ago (2016-02-01 13:39:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1643243002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1643243002/60001
4 years, 10 months ago (2016-02-01 13:58:24 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-01 14:03:53 UTC) #9
commit-bot: I haz the power
4 years, 10 months ago (2016-02-01 14:05:12 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/440669dd8170823c9643d40060fd666297c73313
Cr-Commit-Position: refs/heads/master@{#372656}

Powered by Google App Engine
This is Rietveld 408576698