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

Issue 2635143002: Changed EBoxSizing to an enum class and renamed its members (Closed)

Created:
3 years, 11 months ago by sashab
Modified:
3 years, 11 months ago
Reviewers:
napper
CC:
darktears, apavlov+blink_chromium.org, atotic+reviews_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-style_chromium.org, cbiesinger, chromium-reviews, dglazkov+blink, dshwang, eae+blinkwatch, glebl+reviews_chromium.org, jchaffraix+rendering, leviw+renderwatch, ojan+watch_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Changed EBoxSizing to an enum class and renamed its members Changed EBoxSizing to an enum class and gave it an unsigned underlying type. Also renamed its members to match the CSS keywords they represent, and added the 'k' prefix in line with the Blink rename to match Chromium style. 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 allow EBoxSizing to be used by generated fields in ComputedStyleBase. BUG=628043 Review-Url: https://codereview.chromium.org/2625553005 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2635143002 Cr-Commit-Position: refs/heads/master@{#444278} Committed: https://chromium.googlesource.com/chromium/src/+/dabe54f6a65efa95a6587d88c2745fac3188c80c

Patch Set 1 #

Total comments: 1

Patch Set 2 : Aded k prefix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -33 lines) Patch
M third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 5 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTable.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableCell.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_absolute_utils_test.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils_test.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyleConstants.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleBoxData.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (13 generated)
sashab
3 years, 11 months ago (2017-01-17 04:00:32 UTC) #5
napper
https://codereview.chromium.org/2635143002/diff/1/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp File third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp (right): https://codereview.chromium.org/2635143002/diff/1/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp#newcode1085 third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp:1085: return box->style()->boxSizing() == EBoxSizing::BorderBox Did you mean to also ...
3 years, 11 months ago (2017-01-17 04:04:56 UTC) #6
sashab
Haha thanks for that napper, just as well I wrote it in the CL description! ...
3 years, 11 months ago (2017-01-18 04:08:54 UTC) #13
napper
lgtm
3 years, 11 months ago (2017-01-18 04:50:45 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/2635143002/20001
3 years, 11 months ago (2017-01-18 04:56:35 UTC) #16
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 05:00:47 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/dabe54f6a65efa95a6587d88c274...

Powered by Google App Engine
This is Rietveld 408576698