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

Issue 2614903002: Implements CSSPropertyAPI for the text-underline-position property. (Closed)

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

Patch Set 1 #

Total comments: 1

Patch Set 2 : fixed dependencies, changed year #

Patch Set 3 : dependencies #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -6 lines) Patch
M third_party/WebKit/Source/core/css/BUILD.gn View 1 2 3 4 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 1 chunk +0 lines, -5 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextUnderlinePosition.cpp View 1 2 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
aazzam
3 years, 11 months ago (2017-01-05 04:05:18 UTC) #2
sashab
lgtm https://codereview.chromium.org/2614903002/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextUnderlinePosition.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextUnderlinePosition.cpp (right): https://codereview.chromium.org/2614903002/diff/1/third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextUnderlinePosition.cpp#newcode22 third_party/WebKit/Source/core/css/properties/CSSPropertyAPITextUnderlinePosition.cpp:22: DCHECK(RuntimeEnabledFeatures::css3TextDecorationsEnabled()); These lines are duplicated :)
3 years, 11 months ago (2017-01-05 04:13:22 UTC) #3
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/2614903002/20001
3 years, 11 months ago (2017-01-05 22:06:25 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/130943) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-05 22:08:43 UTC) #11
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/2614903002/80001
3 years, 11 months ago (2017-01-06 03:11:49 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 05:05:21 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/f3d3571792a07271b3cd8faac95b...

Powered by Google App Engine
This is Rietveld 408576698