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

Issue 2642033002: Implements CSSPropertyAPI for the d property (Closed)

Created:
3 years, 11 months ago by Eric Willigers
Modified:
3 years, 7 months ago
Reviewers:
meade_UTC10, Bugs Nash
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implements CSSPropertyAPI for the d property A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyD from the switch statement in parseSingleValue, and calls the API instead. A function pointer to the parseSingleValue function from the API for the d property is stored in a CSSPropertyDescriptor, and is called from CSSPropertyParser. This patch: - Adds CSSPropertyAPID.cpp to the BUILD.gn file. - Adds parseSingleValue to "d" in CSSProperties.json5 so that it will be added to the generated files for the api. - Moves the parsing logic for d from CSSPropertyParser.cpp to CSSPropertyAPID.cpp, which implements CSSPropertyAPI.h. BUG=668012 Review-Url: https://codereview.chromium.org/2642033002 Cr-Commit-Position: refs/heads/master@{#471220} Committed: https://chromium.googlesource.com/chromium/src/+/a90e416a49db962781bf5e3fc5cfd263346e5375

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : add the new generated .h file to core/BUILD.gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.json5 View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp View 1 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
Eric Willigers
3 years, 11 months ago (2017-01-19 02:42:23 UTC) #2
aazzam
https://codereview.chromium.org/2642033002/diff/1/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp (right): https://codereview.chromium.org/2642033002/diff/1/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp#newcode538 third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp:538: CSSValue* consumePath(CSSParserTokenRange& range) { can you explain why you ...
3 years, 11 months ago (2017-01-19 23:06:56 UTC) #3
Eric Willigers
https://codereview.chromium.org/2642033002/diff/1/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp (right): https://codereview.chromium.org/2642033002/diff/1/third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp#newcode538 third_party/WebKit/Source/core/css/parser/CSSPropertyParserHelpers.cpp:538: CSSValue* consumePath(CSSParserTokenRange& range) { On 2017/01/19 23:06:56, aazzam wrote: ...
3 years, 11 months ago (2017-01-19 23:24:46 UTC) #4
Eric Willigers
Diffs in generated files: https://gist.github.com/02809d79e0370f387453901ea9ace261/revisions
3 years, 7 months ago (2017-05-11 05:00:46 UTC) #7
Bugs Nash
lgtm with changes. Please also add the new .h file to core/BUILD.gn https://codereview.chromium.org/2642033002/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp ...
3 years, 7 months ago (2017-05-11 23:14:54 UTC) #13
Eric Willigers
On 2017/05/11 23:14:54, Bugs Nash wrote: > ... add the new .h file to core/BUILD.gn ...
3 years, 7 months ago (2017-05-12 00:15:27 UTC) #14
Eric Willigers
https://codereview.chromium.org/2642033002/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp (right): https://codereview.chromium.org/2642033002/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp#newcode8 third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp:8: On 2017/05/11 23:14:53, Bugs Nash wrote: > I would ...
3 years, 7 months ago (2017-05-12 00:16:14 UTC) #16
Bugs Nash
On 2017/05/12 at 00:16:14, ericwilligers wrote: > https://codereview.chromium.org/2642033002/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp > File third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp (right): > > https://codereview.chromium.org/2642033002/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPID.cpp#newcode8 ...
3 years, 7 months ago (2017-05-12 00:19:00 UTC) #17
meade_UTC10
rs lgtm
3 years, 7 months ago (2017-05-12 04:25:34 UTC) #22
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/2642033002/40001
3 years, 7 months ago (2017-05-12 04:26:26 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 04:31:25 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/a90e416a49db962781bf5e3fc5cf...

Powered by Google App Engine
This is Rietveld 408576698