Chromium Code Reviews
DescriptionUse 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 #Messages
Total messages: 16 (10 generated)
|