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

Issue 2613863002: Implements CSSPropertyAPI for the offset-position property. (Closed)

Created:
3 years, 11 months ago by aazzam
Modified:
3 years, 11 months ago
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 offset-position property. A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyOffsetPosition 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 CSSPropertyAPIOffsetPosition.cpp to the BUILD.gn file. - Adds api_class flag to CSSProperties.in, which indicates that CSSPropertyAPIOffsetPosition.h is generated. - Moves the parsing logic for page from CSSPropertyParser.cpp to CSSPropertyAPIOffsetPosition.cpp, which implements CSSPropertyAPI.h. BUG=668012 Review-Url: https://codereview.chromium.org/2613863002 Cr-Commit-Position: refs/heads/master@{#442860} Committed: https://chromium.googlesource.com/chromium/src/+/aa222b4550e646da3c723394d0835e00be7d8ba1

Patch Set 1 #

Patch Set 2 : fixed dependencies, changed year #

Patch Set 3 : dependencies #

Total comments: 3

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -19 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 4 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, -18 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp View 1 2 1 chunk +29 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 38 (28 generated)
aazzam
3 years, 11 months ago (2017-01-05 04:01:48 UTC) #2
alancutter (OOO until 2018)
lgtm
3 years, 11 months ago (2017-01-05 04:22:55 UTC) #3
aazzam
3 years, 11 months ago (2017-01-08 02:45:37 UTC) #7
sashab
lgtm https://codereview.chromium.org/2613863002/diff/40001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp (right): https://codereview.chromium.org/2613863002/diff/40001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp#newcode7 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp:7: #include "core/css/CSSValuePair.h" Is this needed? https://codereview.chromium.org/2613863002/diff/40001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp#newcode7 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp:7: #include ...
3 years, 11 months ago (2017-01-09 05:19:35 UTC) #8
aazzam
https://codereview.chromium.org/2613863002/diff/40001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp (right): https://codereview.chromium.org/2613863002/diff/40001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp#newcode7 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp:7: #include "core/css/CSSValuePair.h" On 2017/01/09 at 05:19:35, sashab wrote: > ...
3 years, 11 months ago (2017-01-10 06:22:15 UTC) #13
aazzam
On 2017/01/10 at 06:22:15, aazzam wrote: > https://codereview.chromium.org/2613863002/diff/40001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp > File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp (right): > > https://codereview.chromium.org/2613863002/diff/40001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIOffsetPosition.cpp#newcode7 ...
3 years, 11 months ago (2017-01-10 06:22:54 UTC) #14
aazzam
3 years, 11 months ago (2017-01-10 06:23:00 UTC) #15
sashab
still LGTM :)
3 years, 11 months ago (2017-01-10 23:13:04 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/2613863002/80001
3 years, 11 months ago (2017-01-11 10:27:51 UTC) #35
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 10:35:39 UTC) #38
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/aa222b4550e646da3c723394d083...

Powered by Google App Engine
This is Rietveld 408576698