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

Issue 2735093005: Implemented the CSSPropertyAPI for the line-height property. (Closed)

Created:
3 years, 9 months ago by Bugs Nash
Modified:
3 years, 9 months ago
Reviewers:
Raul Vera, meade_UTC10
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

Implemented the CSSPropertyAPI for the line-height property. Part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch - added CSSPropertyAPILineHeight.cpp, which implements CSSPropertyAPI.h - added parseSingleValue method to the CSSPropertyAPILineHeight API - removed CSSPropertyLineHeight from the switch statement in parseSingleValue, and calls the API instead. - added api implementation details to CSSProperties.json5, indicating that CSSPropertyAPILineHeight.h is generated. A function pointer to the parseSingleValue function from the API for the line-height property is stored in a CSSPropertyDescriptor, and is called from CSSPropertyParser. Originally authored in patch 2642783005 by sashab@chromium.org BUG=668012 Review-Url: https://codereview.chromium.org/2735093005 Cr-Commit-Position: refs/heads/master@{#455961} Committed: https://chromium.googlesource.com/chromium/src/+/c76129a90d82fa5587bcbabb4f93f9c7ebb23a70

Patch Set 1 #

Patch Set 2 : Changed api_class from class name to true, because line-height is not a grouped property #

Total comments: 1

Patch Set 3 : Rebased #

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -3 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
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.json5 View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyAPILineHeight.cpp View 1 chunk +18 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 37 (26 generated)
Bugs Nash
3 years, 9 months ago (2017-03-08 00:29:49 UTC) #3
Raul Vera
The description mentions a change to CSSProperties.in, which I believe should be CSSProperties.Json5, no? Or ...
3 years, 9 months ago (2017-03-08 00:43:13 UTC) #6
Bugs Nash
On 2017/03/08 at 00:43:13, rvera wrote: > The description mentions a change to CSSProperties.in, which ...
3 years, 9 months ago (2017-03-08 03:50:19 UTC) #10
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/2735093005/1
3 years, 9 months ago (2017-03-08 03:58:56 UTC) #12
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
3 years, 9 months ago (2017-03-08 03:58:58 UTC) #14
Raul Vera
lgtm
3 years, 9 months ago (2017-03-08 21:33:53 UTC) #23
Bugs Nash
meade@ for owners
3 years, 9 months ago (2017-03-08 22:29:18 UTC) #26
Bugs Nash
meade@ for owners
3 years, 9 months ago (2017-03-08 22:30:31 UTC) #28
meade_UTC10
lgtm Looks like you need to rebase :/ https://codereview.chromium.org/2735093005/diff/20001/third_party/WebKit/Source/core/BUILD.gn File third_party/WebKit/Source/core/BUILD.gn (right): https://codereview.chromium.org/2735093005/diff/20001/third_party/WebKit/Source/core/BUILD.gn#newcode538 third_party/WebKit/Source/core/BUILD.gn:538: "$blink_core_output_dir/css/properties/CSSPropertyAPILineHeight.h", ...
3 years, 9 months ago (2017-03-09 05:51:54 UTC) #29
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/2735093005/60001
3 years, 9 months ago (2017-03-09 23:11:07 UTC) #34
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 02:34:15 UTC) #37
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/c76129a90d82fa5587bcbabb4f93...

Powered by Google App Engine
This is Rietveld 408576698