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

Issue 2664713002: Use switch statement instead of bit masking for EPosition. (Closed)

Created:
3 years, 10 months ago by shend
Modified:
3 years, 10 months ago
Reviewers:
sashab, Bugs Nash
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use switch statement instead of bit masking for EPosition. Currently, LayoutObject converts EPosition objects into an internal representation using bit masking. However, as part of generating ComputedStyle, there will no longer be a guarantee on the EPosition enumerator values, so the bit masking will not work. This patch converts the bit masking to an explicit switch statements that converts EPosition to the internal LayoutObject representation. This is prework for converting EPosition to an enum class and generating it. BUG=665272 Review-Url: https://codereview.chromium.org/2664713002 Cr-Commit-Position: refs/heads/master@{#447186} Committed: https://chromium.googlesource.com/chromium/src/+/1aa5a2b59d912d6781ec85942708efebe2e19314

Patch Set 1 #

Patch Set 2 : Merge switch cases #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 1 chunk +19 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
shend
Hey Bugs, PTAL :)
3 years, 10 months ago (2017-01-30 05:21:19 UTC) #2
Bugs Nash
lgtm
3 years, 10 months ago (2017-01-30 19:47:09 UTC) #7
shend
Hey Sasha, PTAL :)
3 years, 10 months ago (2017-01-30 21:35:11 UTC) #9
sashab
LGTM, bug should be 665272 though :)
3 years, 10 months ago (2017-01-30 23:44:53 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/2664713002/20001
3 years, 10 months ago (2017-01-31 03:57:39 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 04:04:54 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/1aa5a2b59d912d6781ec85942708...

Powered by Google App Engine
This is Rietveld 408576698