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

Issue 2645683003: Added CSSPropertyShapeUtils which holds shape parsing methods. (Closed)

Created:
3 years, 11 months ago by ktyliu
Modified:
3 years, 11 months ago
Reviewers:
sashab, aazzam
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added CSSPropertyShapeUtils which holds shape parsing methods. This allows CSSPropertyShapeOutside as well as CSSPropertyClipPath to use the consumeBasicShape method and for CSSPropertyShapeOutside and CSSPropertyBorderRadius to use the consumeRadii method. Moved complete4Sides into CSSPropertyParserHelpers as that method is quite generic and simple, and used by several parser methods. This patch: - Adds CSSPropertyShapeUtils (.h and .cpp files) to the BUILD.gn file. - Moves consumeBasicShape() and consumeRadii() from CSSPropertyParser.cpp to CSSPropertyShapeUtils.cpp, as well as helper methods consumeShapeRadius, consumeBasicShapeEllipse, consumeBasicShapePolygon, and consumeBasicShapeInset that are placed in anonymous namespace. - Move complete4Sides method from CSSPropertyParser.cpp to CSSPropertyParserHelpers.cpp BUG=668012 Review-Url: https://codereview.chromium.org/2645683003 Cr-Commit-Position: refs/heads/master@{#444885} Committed: https://chromium.googlesource.com/chromium/src/+/29aa23c34afa7f5879aa6563a025c388b80c96a5

Patch Set 1 #

Patch Set 2 : Rename CSSPropertyShapeUtil to CSSPropertyShapeUtils #

Patch Set 3 : Rebase #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -204 lines) Patch
M third_party/WebKit/Source/core/css/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 chunks +5 lines, -204 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp View 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.h View 1 1 chunk +31 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyShapeUtils.cpp View 1 1 chunk +212 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
ktyliu
Hi Anna, Thanks for your review of 2642013002. I've now moved just the utility part ...
3 years, 11 months ago (2017-01-19 02:56:41 UTC) #4
aazzam
awesome kevin, lgtm, sasha ptal :)
3 years, 11 months ago (2017-01-19 03:35:50 UTC) #6
sashab
LGTM with nit: Anna, are we calling the files 'Util' or 'Utils'? Would just be ...
3 years, 11 months ago (2017-01-19 04:12:14 UTC) #7
aazzam
On 2017/01/19 at 04:12:14, sashab wrote: > LGTM with nit: Anna, are we calling the ...
3 years, 11 months ago (2017-01-19 04:16:18 UTC) #8
ktyliu
On 2017/01/19 at 04:16:18, aazzam wrote: > On 2017/01/19 at 04:12:14, sashab wrote: > > ...
3 years, 11 months ago (2017-01-19 04:20:33 UTC) #10
sashab
Cool :) LGTM, thanks for updating CL desc too
3 years, 11 months ago (2017-01-19 04:22:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2645683003/40001
3 years, 11 months ago (2017-01-19 04:52:46 UTC) #18
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-19 07:49:11 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2645683003/60001
3 years, 11 months ago (2017-01-19 21:39:17 UTC) #23
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 23:22:40 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/29aa23c34afa7f5879aa6563a025...

Powered by Google App Engine
This is Rietveld 408576698