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

Issue 2546333002: Changed Order to an enum class and renamed its members (Closed)

Created:
4 years ago by sashab
Modified:
4 years ago
Reviewers:
napper, nainar
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, krit, eae+blinkwatch, f(malita), fs, gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, sof, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Changed Order to an enum class and renamed its members Changed Order to an enum class and gave it an unsigned underlying type. Also renamed it from Order to EOrder to match the other ComputedStyle enums, and renamed its members to match its keywords from CSSValueKeywords.in. Also removed the '= 0' value setter for Logical and the one callsite where this was used (implicit int conversion is not allowed for enum classes anyway). Changing it to an enum class enforces better namespacing and code practices. Adding the unsigned underlying type is pre-work for when the class is eventually stored as an enum bitfield (it would be done in this patch, except a presubmit warning already exists that prevents that. The presubmit warning needs to be updated before that change can occur.) This is also pre-work to move EOrder to be generated in ComputedStyleBase. BUG=628043 Committed: https://crrev.com/5fcf8dbc81c32665ab015b7f0cf303f3427a3d93 Cr-Commit-Position: refs/heads/master@{#436233}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -29 lines) Patch
M third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h View 1 chunk +7 lines, -7 lines 2 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/TextRunConstructor.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineFlowBox.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineIterator.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/line/SVGInlineTextBox.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 3 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyleConstants.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (5 generated)
sashab
Note: needed to change CSSProperties.in since this generates StyleBuilder which relies on the enum name
4 years ago (2016-12-05 02:00:05 UTC) #2
napper
lgtm https://codereview.chromium.org/2546333002/diff/1/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h File third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h (right): https://codereview.chromium.org/2546333002/diff/1/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h#newcode3555 third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h:3555: default: I realize this is not part of ...
4 years ago (2016-12-05 02:18:22 UTC) #3
sashab
Ty, nainar@ please review https://codereview.chromium.org/2546333002/diff/1/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h File third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h (right): https://codereview.chromium.org/2546333002/diff/1/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h#newcode3555 third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h:3555: default: On 2016/12/05 at 02:18:22, ...
4 years ago (2016-12-05 02:41:18 UTC) #5
nainar
lgtm
4 years ago (2016-12-05 02:44:55 UTC) #6
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/2546333002/1
4 years ago (2016-12-05 02:49:43 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-05 04:40:10 UTC) #10
commit-bot: I haz the power
4 years ago (2016-12-05 04:42:02 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5fcf8dbc81c32665ab015b7f0cf303f3427a3d93
Cr-Commit-Position: refs/heads/master@{#436233}

Powered by Google App Engine
This is Rietveld 408576698