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

Issue 2639303004: Implements CSSPropertyAPI for the fragmentation element properties. (Closed)

Created:
3 years, 11 months ago by nainar
Modified:
3 years, 9 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 fragmentation element properties. A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyWidows, CSSPropertyOrphans and CSSPropertyWebkitFragmentationOrdinalGroup from the switch statement in parseSingleValue, and calls the API instead. A function pointer to the parseSingleValue function from the API for the border radius properties is stored in a CSSPropertyDescriptor, and is called from CSSPropertyParser. This patch: - Adds CSSPropertyAPIFragmentationGroup.cpp to the BUILD.gn file. - Adds api_class=CSSPropertyAPIFragmentationGroup flag to each fragmentation class property in CSSProperties.in, which indicates that CSSPropertyAPIFragmentationGroup.h is generated. - Moves the parsing logic for fragmentation properties from CSSPropertyParser.cpp to CSSPropertyAPIFragmentationGroup.cpp, which implements CSSPropertyAPI.h. BUG=668012 Review-Url: https://codereview.chromium.org/2639303004 Cr-Commit-Position: refs/heads/master@{#456320} Committed: https://chromium.googlesource.com/chromium/src/+/b5e82dce09c880f7aa92a7a2203dc4b0e64c0e84

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add orphans and webkit-box-ordinal-group #

Total comments: 1

Patch Set 3 : remove unneeded import #

Total comments: 4

Patch Set 4 : Rename Box -> Fragment everywhere #

Patch Set 5 : FragmentationGroup -> Fragmentation #

Patch Set 6 : Rebase #

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

Messages

Total messages: 43 (30 generated)
nainar
Hi Anna, PTAL? Thanks! :)
3 years, 11 months ago (2017-01-18 23:41:25 UTC) #3
nainar
Sending back per feedback https://codereview.chromium.org/2639303004/diff/1/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp File third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp (left): https://codereview.chromium.org/2639303004/diff/1/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp#oldcode3274 third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp:3274: case CSSPropertyWidows: As per IRL ...
3 years, 11 months ago (2017-01-18 23:56:30 UTC) #8
aazzam
lgtm with comment! sasha ptal :) https://codereview.chromium.org/2639303004/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIBoxGroup.cpp File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIBoxGroup.cpp (right): https://codereview.chromium.org/2639303004/diff/20001/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIBoxGroup.cpp#newcode7 third_party/WebKit/Source/core/css/properties/CSSPropertyAPIBoxGroup.cpp:7: #include "core/css/parser/CSSParserContext.h" not ...
3 years, 11 months ago (2017-01-19 00:01:52 UTC) #12
sashab
https://codereview.chromium.org/2639303004/diff/40001/third_party/WebKit/Source/core/css/BUILD.gn File third_party/WebKit/Source/core/css/BUILD.gn (right): https://codereview.chromium.org/2639303004/diff/40001/third_party/WebKit/Source/core/css/BUILD.gn#newcode345 third_party/WebKit/Source/core/css/BUILD.gn:345: "parser/SizesCalcParser.cpp", Typo in CL description in the bullet points ...
3 years, 11 months ago (2017-01-19 00:41:59 UTC) #15
nainar
Sasha, PTAL? Thanks! :) https://codereview.chromium.org/2639303004/diff/40001/third_party/WebKit/Source/core/css/BUILD.gn File third_party/WebKit/Source/core/css/BUILD.gn (right): https://codereview.chromium.org/2639303004/diff/40001/third_party/WebKit/Source/core/css/BUILD.gn#newcode345 third_party/WebKit/Source/core/css/BUILD.gn:345: "parser/SizesCalcParser.cpp", On 2017/01/19 at 00:41:59, ...
3 years, 11 months ago (2017-01-19 00:57:23 UTC) #19
sashab
LGTM conditional on anna liking the name 'CSSPropertyAPIFragmentationGroup'. Is the convention to have 'Group' at ...
3 years, 11 months ago (2017-01-19 01:01:45 UTC) #20
nainar
Yup talked to Anna and she prefers CSSPropertyAPIFragmentation as well so changed that. Landing now
3 years, 11 months ago (2017-01-19 01:50:38 UTC) #23
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/2639303004/80001
3 years, 11 months ago (2017-01-19 01:51:10 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/350842)
3 years, 11 months ago (2017-01-19 03:40:18 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/2639303004/80001
3 years, 11 months ago (2017-01-19 03:59:22 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/345012)
3 years, 11 months ago (2017-01-19 04:06:15 UTC) #33
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/2639303004/100001
3 years, 9 months ago (2017-03-13 03:07:18 UTC) #40
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 03:13:06 UTC) #43
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/b5e82dce09c880f7aa92a7a2203d...

Powered by Google App Engine
This is Rietveld 408576698