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

Issue 2614783003: Implements CSSPropertyAPI for the clip property. (Closed)

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

Patch Set 1 #

Total comments: 1

Patch Set 2 : fixed dependencies, changed year #

Patch Set 3 : dependency #

Patch Set 4 : dependencies #

Patch Set 5 : upstream #

Patch Set 6 : upstream #

Total comments: 1

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -38 lines) Patch
M third_party/WebKit/Source/core/css/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 2 chunks +0 lines, -37 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.cpp View 1 2 3 4 5 6 1 chunk +58 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 31 (22 generated)
aazzam
3 years, 11 months ago (2017-01-05 04:00:32 UTC) #2
meade_UTC10
lgtm https://codereview.chromium.org/2614783003/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.cpp (right): https://codereview.chromium.org/2614783003/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.cpp#newcode15 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.cpp:15: static CSSValue* consumeClipComponent(CSSParserTokenRange& range, You could make this ...
3 years, 11 months ago (2017-01-05 04:10:22 UTC) #3
aazzam
3 years, 11 months ago (2017-01-08 02:52:09 UTC) #7
sashab
https://codereview.chromium.org/2614783003/diff/100001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.cpp (right): https://codereview.chromium.org/2614783003/diff/100001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.cpp#newcode13 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClip.cpp:13: static CSSValue* consumeClipComponent(CSSParserTokenRange& range, What Eddy said - anonymous ...
3 years, 11 months ago (2017-01-09 03:42:21 UTC) #8
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/2614783003/140001
3 years, 11 months ago (2017-01-11 05:13:28 UTC) #23
sashab
lgtm
3 years, 11 months ago (2017-01-11 05:20:17 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/339212)
3 years, 11 months ago (2017-01-11 05:20:51 UTC) #26
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/2614783003/140001
3 years, 11 months ago (2017-01-11 05:21:19 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 05:25:24 UTC) #31
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/3f6fb5a1899d4ad52e4997f0f309...

Powered by Google App Engine
This is Rietveld 408576698