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

Issue 2667533002: Remove explicit enum values in EPosition. (Closed)

Created:
3 years, 10 months ago by shend
Modified:
3 years, 10 months ago
CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove explicit enum values in EPosition. Currently, the enum values of EPosition are specified explicitly (namely EPosition::FixedPosition is set to 6 instead of the default of 4). This was used for bit masking in LayoutObject, but no longer. This patch removes the explicit enum values since we no longer depend on them. LayoutObject's dependence on explicit enum values was removed in: https://codereview.chromium.org/2664713002. Note that TextAutoSizer::computeFingerprint is indirectly affected by this patch because it assumes that EPosition uses 3 bits. However, EPosition still uses 3 bits after this patch, so no change is required here. This is prework for converting EPosition to an enum class and generating it. BUG=665272 Review-Url: https://codereview.chromium.org/2667533002 Cr-Commit-Position: refs/heads/master@{#448192} Committed: https://chromium.googlesource.com/chromium/src/+/d7bb23484bdfdc5f4141b7bf9de7815e28d1f1b5

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -6 lines) Patch
M third_party/WebKit/Source/core/style/ComputedStyleConstants.h View 1 chunk +5 lines, -6 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 21 (11 generated)
shend
Hey Alan PTAL :)
3 years, 10 months ago (2017-01-31 04:14:38 UTC) #4
sashab
Yayy!! Nice work darren :) LGTM Haha it still uses 3 bits that's funny. We ...
3 years, 10 months ago (2017-01-31 22:39:06 UTC) #10
shend
On 2017/01/31 at 22:39:06, sashab wrote: > Yayy!! Nice work darren :) LGTM > > ...
3 years, 10 months ago (2017-01-31 22:54:22 UTC) #11
sashab
Oh no that's OK - what I meant was did you run perfbots on the ...
3 years, 10 months ago (2017-01-31 23:22:28 UTC) #12
shend
On 2017/01/31 at 23:22:28, sashab wrote: > Oh no that's OK - what I meant ...
3 years, 10 months ago (2017-01-31 23:22:59 UTC) #13
shend
On 2017/01/31 at 23:22:59, shend wrote: > On 2017/01/31 at 23:22:28, sashab wrote: > > ...
3 years, 10 months ago (2017-02-01 21:40:55 UTC) #14
shend
On 2017/02/01 at 21:40:55, shend wrote: > On 2017/01/31 at 23:22:59, shend wrote: > > ...
3 years, 10 months ago (2017-02-02 06:15:17 UTC) #15
sashab
LGTM, discussed perf results offline and decided no regression introduced
3 years, 10 months ago (2017-02-03 05:07:08 UTC) #16
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/2667533002/1
3 years, 10 months ago (2017-02-05 22:25:06 UTC) #18
commit-bot: I haz the power
3 years, 10 months ago (2017-02-06 00:04:08 UTC) #21
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/d7bb23484bdfdc5f4141b7bf9de7...

Powered by Google App Engine
This is Rietveld 408576698