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

Issue 2677033002: Remove BreakAlways from EBreak enum (Closed)

Created:
3 years, 10 months ago by amoylan
Modified:
3 years, 10 months ago
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

Remove BreakAlways from EBreak enum This change is the first step in preparing EBreak for automatic generation. The EBreak enum currently has three kinds of values: * Values applicable to break-before & break-after property * A subset of these applicable to break-inline * A single value BreakAlways applicable to neither and only used temporarily in the code path for computing values for the properties page-break-before|after|inline and -webkit-column-break-before|after|inline. This change removes the last bullet point. The next stage will split the other two into separate enum classes with standardized naming. Reasons to feel confident about removing BreakAlways: * There are existing DCHECKs ensuring that it is never set in ComputedStyle (removed in this CL). * CSSValueAlways (the only thing that maps to it) is excluded from the list of allowed values for break-before|after|inline in CSSParserFastPaths.cpp. * For the legacy properties (page|-webkit-column)-break-(before|after), CSSPropertyParser.cpp converts CSSValueAlways to either CSSValuePage or CSSValueColumn as appropriate (and CSSValueInvalid for *-inside properties). I have replaced the temporary use of BreakAlways within ComputedStyleCSSValueMapping.cpp with an equivalent direct conversion to appropriate CSSValues. (This seems more consistent with the rest of ComputedStyleCSSValueMapping.cpp anyway.) BUG=628043 Review-Url: https://codereview.chromium.org/2677033002 Cr-Commit-Position: refs/heads/master@{#449474} Committed: https://chromium.googlesource.com/chromium/src/+/446e9444ff7dd64a3afff530b5224069d14f72a5

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -35 lines) Patch
M third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h View 2 chunks +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 3 chunks +24 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyleConstants.h View 1 chunk +1 line, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (10 generated)
amoylan
Hi Sasha, please let me know if I should direct this to someone else for ...
3 years, 10 months ago (2017-02-06 06:16:55 UTC) #5
sashab
Great CL description! This change sounds great. I love the "reasons to feel confident" bit ...
3 years, 10 months ago (2017-02-07 01:44:58 UTC) #9
alancutter (OOO until 2018)
I'm confused. This change removes the conversion from CSSValue that produces BreakAlways and doesn't replace ...
3 years, 10 months ago (2017-02-08 23:37:09 UTC) #10
amoylan
On 2017/02/08 23:37:09, alancutter wrote: > I'm confused. This change removes the conversion from CSSValue ...
3 years, 10 months ago (2017-02-09 00:18:46 UTC) #11
amoylan
On 2017/02/09 00:18:46, amoylan wrote: > On 2017/02/08 23:37:09, alancutter wrote: > > I'm confused. ...
3 years, 10 months ago (2017-02-09 00:24:17 UTC) #12
alancutter (OOO until 2018)
Thanks for the extra clarification. It probably was useful once but got changed along the ...
3 years, 10 months ago (2017-02-09 04:47:17 UTC) #13
sashab
lgtm
3 years, 10 months ago (2017-02-09 04:58:42 UTC) #14
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/2677033002/1
3 years, 10 months ago (2017-02-09 22:10:54 UTC) #16
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 23:57:09 UTC) #19
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/446e9444ff7dd64a3afff530b522...

Powered by Google App Engine
This is Rietveld 408576698