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

Issue 2609933005: Implements CSSPropertyAPI for the webkit-text-emphasis-style 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, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 7

Patch Set 2 : fixed dependencies, changed year #

Total comments: 1

Patch Set 3 : dependencies #

Total comments: 2

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -30 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 4 5 2 chunks +0 lines, -29 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 45 (34 generated)
aazzam
3 years, 11 months ago (2017-01-05 04:13:38 UTC) #2
Bugs Nash
https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp (right): https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp#newcode5 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:5: #include "core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.h" this file seems to be missing?
3 years, 11 months ago (2017-01-05 04:24:11 UTC) #3
aazzam
PTAL @bugsnash :) https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp (right): https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp#newcode5 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:5: #include "core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.h" On 2017/01/05 at 04:24:11, ...
3 years, 11 months ago (2017-01-05 04:25:56 UTC) #5
Bugs Nash
https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp (right): https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp#newcode5 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:5: #include "core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.h" On 2017/01/05 at 04:25:56, aazzam wrote: > ...
3 years, 11 months ago (2017-01-05 04:44:41 UTC) #6
aazzam
PTAL @bugsnash :) https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp (right): https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp#newcode7 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:7: #include "core/css/CSSStringValue.h" On 2017/01/05 at 04:44:41, ...
3 years, 11 months ago (2017-01-05 05:12:44 UTC) #7
Bugs Nash
On 2017/01/05 at 05:12:44, aazzam wrote: > PTAL @bugsnash :) > > https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp > File ...
3 years, 11 months ago (2017-01-05 22:13:00 UTC) #8
Bugs Nash
https://codereview.chromium.org/2609933005/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp (right): https://codereview.chromium.org/2609933005/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp#newcode9 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:9: #include "core/css/parser/CSSParserTokenRange.h" can be forward declared instead of included
3 years, 11 months ago (2017-01-05 22:57:59 UTC) #9
aazzam
sashab rs lgtm please :)
3 years, 11 months ago (2017-01-06 03:13:11 UTC) #11
sashab
lgtm https://codereview.chromium.org/2609933005/diff/40001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp (right): https://codereview.chromium.org/2609933005/diff/40001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp#newcode7 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:7: #include "core/css/CSSStringValue.h" Ohh I just saw your comment ...
3 years, 11 months ago (2017-01-06 05:30:27 UTC) #12
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/2609933005/100001
3 years, 11 months ago (2017-01-17 04:13:35 UTC) #42
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 04:19:44 UTC) #45
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/7cc977a4e6d8777b07306bae3a15...

Powered by Google App Engine
This is Rietveld 408576698