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

Issue 2694333003: Remove enum ordering dependency in StyleBuilderCustom. (Closed)

Created:
3 years, 10 months ago by shend
Modified:
3 years, 9 months ago
Reviewers:
meade_UTC10, nainar
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

Remove enum ordering dependency in StyleBuilderCustom. StyleBuilderCustom makes an assumption that the values of EListStyleType (which is generated) is ordered in a particular way. This might lead to subtle breakages if the generated order changes. As part of removing all ordering dependencies, this patch uses the generated CSSValueID to platform enum mapping instead, which makes no assumptions about the order of the enums. BUG=665272 Review-Url: https://codereview.chromium.org/2694333003 Cr-Commit-Position: refs/heads/master@{#453937} Committed: https://chromium.googlesource.com/chromium/src/+/7f0d7601fd45a6bea9b279bd43c984300b6ff683

Patch Set 1 #

Patch Set 2 : Add comment #

Patch Set 3 : Use generated #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -6 lines) Patch
M third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp View 1 2 4 chunks +4 lines, -6 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 23 (15 generated)
nainar
lgtm
3 years, 10 months ago (2017-02-15 03:58:19 UTC) #2
nainar
yeah for not having ordered dependencies!
3 years, 10 months ago (2017-02-15 03:58:37 UTC) #3
shend
Hi Eddy, PTAL
3 years, 10 months ago (2017-02-15 03:59:24 UTC) #5
meade_UTC10
lgtm Please add a TODO to think about how to streamline these kinds of switch ...
3 years, 10 months ago (2017-02-15 06:12:24 UTC) #6
shend
Hi Eddy, since we're generating CSSValueID -> platform enums, I've updated this patch to use ...
3 years, 10 months ago (2017-02-24 05:35:33 UTC) #9
meade_UTC10
lgtm
3 years, 9 months ago (2017-03-01 06:41:22 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/2694333003/60001
3 years, 9 months ago (2017-03-01 15:30:09 UTC) #20
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 15:36:07 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/7f0d7601fd45a6bea9b279bd43c9...

Powered by Google App Engine
This is Rietveld 408576698