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

Issue 2666483002: Changed ETableLayout to an enum class and renamed its members (Closed)

Created:
3 years, 10 months ago by shend
Modified:
3 years, 10 months ago
Reviewers:
sashab, Bugs Nash
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

Changed ETableLayout to an enum class and renamed its members Changed ETableLayout 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 ETableLayout to be used by generated fields in ComputedStyleBase. BUG=684966 Review-Url: https://codereview.chromium.org/2666483002 Cr-Commit-Position: refs/heads/master@{#447121} Committed: https://chromium.googlesource.com/chromium/src/+/581521281404da94a7c8a6281d34c7ac65fa1d9d

Patch Set 1 #

Patch Set 2 : Use CSS keywords #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -10 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/style/ComputedStyle.h View 1 3 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyleConstants.h View 1 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (9 generated)
shend
Hey Bugs PTAL, more renames :P
3 years, 10 months ago (2017-01-30 00:52:06 UTC) #2
Bugs Nash
lgtm
3 years, 10 months ago (2017-01-30 19:33:24 UTC) #7
shend
Sasha, PTAL :)
3 years, 10 months ago (2017-01-30 21:35:43 UTC) #9
sashab
Haha wow this is barely used! LGTM
3 years, 10 months ago (2017-01-30 23:43:38 UTC) #10
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/2666483002/20001
3 years, 10 months ago (2017-01-31 00:04:34 UTC) #12
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 00:12:33 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/581521281404da94a7c8a6281d34...

Powered by Google App Engine
This is Rietveld 408576698