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

Issue 2618523003: Implements CSSPropertyAPI for the page property. (Closed)

Created:
3 years, 11 months ago by aazzam
Modified:
3 years, 11 months ago
Reviewers:
sashab, Bugs Nash
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

Implements CSSPropertyAPI for the page property. A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyPage from the switch statement in parseSingleValue, and calls the API instead. A function pointer to the parseSingleValue function from the API for the page property is stored in a CSSPropertyDescriptor, and is called from CSSPropertyParser. This patch: - Adds CSSPropertyAPIPage.cpp to the BUILD.gn file. - Adds api_class flag to CSSProperties.in, which indicates that CSSPropertyAPIPage.h is generated. - Moves the parsing logic for page from CSSPropertyParser.cpp to CSSPropertyAPIPage.cpp, which implements CSSPropertyAPI.h. BUG=668012 Review-Url: https://codereview.chromium.org/2618523003 Cr-Commit-Position: refs/heads/master@{#442879} Committed: https://chromium.googlesource.com/chromium/src/+/f812e777f77f24979571a28472c064efade8ede8

Patch Set 1 #

Patch Set 2 : fixed dependencies, changed year #

Total comments: 4

Patch Set 3 : dependencies #

Patch Set 4 : rebase #

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

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 31 (24 generated)
aazzam
3 years, 11 months ago (2017-01-05 04:14:32 UTC) #2
Bugs Nash
https://codereview.chromium.org/2618523003/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp (right): https://codereview.chromium.org/2618523003/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp#newcode7 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp:7: #include "core/css/CSSValueList.h" not needed https://codereview.chromium.org/2618523003/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp#newcode8 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp:8: #include "core/css/parser/CSSParserTokenRange.h" can ...
3 years, 11 months ago (2017-01-05 23:04:16 UTC) #4
aazzam
https://codereview.chromium.org/2618523003/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp (right): https://codereview.chromium.org/2618523003/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp#newcode7 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIPage.cpp:7: #include "core/css/CSSValueList.h" On 2017/01/05 at 23:04:16, Bugs Nash wrote: ...
3 years, 11 months ago (2017-01-08 02:42:25 UTC) #7
Bugs Nash
lgtm
3 years, 11 months ago (2017-01-08 20:14:04 UTC) #8
sashab
lgtm
3 years, 11 months ago (2017-01-09 03:35:05 UTC) #9
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/2618523003/60001
3 years, 11 months ago (2017-01-11 12:05:48 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 12:10:26 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/f812e777f77f24979571a28472c0...

Powered by Google App Engine
This is Rietveld 408576698