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

Issue 2646043003: Implements CSSPropertyAPI for the clip-path property. (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

Implements CSSPropertyAPI for the clip-path property. A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyClipPath 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 CSSPropertyAPIClipPath.cpp to the BUILD.gn file. - Adds api_class flag to CSSProperties.in, which indicates that CSSPropertyAPIClipPath.h is generated. - Moves the parsing logic for page from CSSPropertyParser.cpp to CSSPropertyAPIClipPath.cpp, which implements CSSPropertyAPI.h. BUG=668012 Review-Url: https://codereview.chromium.org/2646043003 Cr-Commit-Position: refs/heads/master@{#444986} Committed: https://chromium.googlesource.com/chromium/src/+/a5de67a2a364184a9e9cdfe591aa8abc28046133

Patch Set 1 #

Total comments: 4

Patch Set 2 : remove using namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -12 lines) Patch
M third_party/WebKit/Source/core/css/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 2 chunks +0 lines, -11 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp View 1 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
ktyliu
3 years, 11 months ago (2017-01-20 03:11:03 UTC) #2
aazzam
lgtm + comment, sasha please see the comment below :) https://codereview.chromium.org/2646043003/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp (right): https://codereview.chromium.org/2646043003/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp#newcode13 ...
3 years, 11 months ago (2017-01-20 03:15:56 UTC) #4
ktyliu
thanks for the quick review https://codereview.chromium.org/2646043003/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp (right): https://codereview.chromium.org/2646043003/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp#newcode13 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp:13: using namespace CSSPropertyParserHelpers; On ...
3 years, 11 months ago (2017-01-20 03:18:41 UTC) #5
sashab
LGTM thanks kevin https://codereview.chromium.org/2646043003/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp (right): https://codereview.chromium.org/2646043003/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp#newcode13 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp:13: using namespace CSSPropertyParserHelpers; On 2017/01/20 at ...
3 years, 11 months ago (2017-01-20 03:46:48 UTC) #6
ktyliu
https://codereview.chromium.org/2646043003/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp (right): https://codereview.chromium.org/2646043003/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp#newcode13 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIClipPath.cpp:13: using namespace CSSPropertyParserHelpers; Done. Sounds good to be consistent ...
3 years, 11 months ago (2017-01-20 03:53:59 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/2646043003/20001
3 years, 11 months ago (2017-01-20 05:30:30 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 05:34:31 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a5de67a2a364184a9e9cdfe591aa...

Powered by Google App Engine
This is Rietveld 408576698