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

Issue 2648703002: Implements CSSPropertyAPI for the margin properties. (Closed)

Created:
3 years, 11 months ago by aazzam
Modified:
3 years, 10 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 margin properties. A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyMargin{Top,Right,Bottom,Left}, CSSProperty{Top,Right,Bottom,Left}, and CSSPropertyWebkitMargin[Top|Right|Bottom|Left] from the switch statement in parseSingleValue, and calls the API instead. A function pointer to the parseSingleValue function from the API for the margin properties is stored in a CSSPropertyDescriptor, and is called from CSSPropertyParser. This patch: - Adds CSSPropertyAPIMargin.cpp and CSSPropertyAPIWebkitMargin.cpp to the BUILD.gn file. - Adds api_class=CSSPropertyAPIMargin and api_class=CSSPropertyAPIWebkitMargin flag in CSSProperties.in to each of the margin and -webkit-margin properties respectively, which indicates that CSSPropertyAPIMargin.h and CSSPropertyWebkitMargin.h are generated. - Moves the parsing logic for radius from CSSPropertyParser.cpp to CSSPropertyAPI[Webkit]Margin.cpp, which implements CSSPropertyAPI.h. BUG=668012 Review-Url: https://codereview.chromium.org/2648703002 Cr-Original-Commit-Position: refs/heads/master@{#447430} Committed: https://chromium.googlesource.com/chromium/src/+/72f22e3a5858ab9593cea5703c840b8f3c60327c Review-Url: https://codereview.chromium.org/2648703002 Cr-Commit-Position: refs/heads/master@{#447473} Committed: https://chromium.googlesource.com/chromium/src/+/bd564cefdfd28db390dcde233aa9bb5b5943abea

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Patch Set 4 : Fixed bug #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Patch Set 7 : removed accidental lines in json #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -16 lines) Patch
M third_party/WebKit/Source/core/css/BUILD.gn View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.json5 View 1 2 3 4 5 6 8 chunks +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 1 chunk +0 lines, -16 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyAPIMargin.cpp View 1 chunk +20 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitMargin.cpp View 1 chunk +20 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 46 (33 generated)
aazzam
ptal sasha :)
3 years, 11 months ago (2017-01-20 02:06:16 UTC) #2
sashab
Haha oh man this is an old one! LGTM. Replaec '}' with '|' in CL ...
3 years, 11 months ago (2017-01-20 02:22:58 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/2648703002/40001
3 years, 10 months ago (2017-01-31 05:37:56 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/381016)
3 years, 10 months ago (2017-01-31 06:43:34 UTC) #21
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/2648703002/40001
3 years, 10 months ago (2017-01-31 21:48:56 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/379373)
3 years, 10 months ago (2017-01-31 23:23:04 UTC) #25
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/2648703002/60001
3 years, 10 months ago (2017-02-01 00:51:05 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/72f22e3a5858ab9593cea5703c840b8f3c60327c
3 years, 10 months ago (2017-02-01 02:55:16 UTC) #32
aazzam
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2668753005/ by aazzam@google.com. ...
3 years, 10 months ago (2017-02-01 03:06:16 UTC) #33
tsergeant
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2668143003/ by tsergeant@chromium.org. ...
3 years, 10 months ago (2017-02-01 03:11:33 UTC) #34
findit-for-me
FYI: Findit identified this CL at revision 447430 as the culprit for failures in the ...
3 years, 10 months ago (2017-02-01 03:18:29 UTC) #35
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/2648703002/120001
3 years, 10 months ago (2017-02-01 05:56:32 UTC) #43
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 08:23:08 UTC) #46
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/bd564cefdfd28db390dcde233aa9...

Powered by Google App Engine
This is Rietveld 408576698