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

Issue 2686473004: Make ComputedStyle generation deterministic. (Closed)

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

Description

Make ComputedStyle generation deterministic. Since Python dicts are unordered, it is possible that, when we generate ComputedStyle with no changes to CSSProperties, the generated code is different (e.g. different order of enum declarations). This is bad when we start showing diffs for generated code. This patch enforces an ordering on the generate code so that the generated code should always be the same given the same input. Namely: - Enum type declarations are ordered in alphabetical order by name. - Fields are ordered first by size (for packing), and then in alphabetical order by name when there's a tie. BUG=628043 Review-Url: https://codereview.chromium.org/2686473004 Cr-Commit-Position: refs/heads/master@{#461956} Committed: https://chromium.googlesource.com/chromium/src/+/fe7b8a3b74de1097ffc1ff819c6b2109dcb6800b

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M third_party/WebKit/Source/build/scripts/make_computed_style_base.py View 1 2 3 4 5 4 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 58 (50 generated)
shend
Hi Sasha, PTAL
3 years, 10 months ago (2017-02-09 21:30:57 UTC) #6
shend
On 2017/02/09 at 21:30:57, shend wrote: > Hi Sasha, PTAL Hmm, lots of tests fail ...
3 years, 10 months ago (2017-02-10 00:13:17 UTC) #11
sashab
Good find. Let's fix these one-by-one. Maybe we can find someone to help you with ...
3 years, 10 months ago (2017-02-10 01:07:12 UTC) #12
shend
On 2017/02/10 at 01:07:12, sashab wrote: > Good find. Let's fix these one-by-one. Maybe we ...
3 years, 10 months ago (2017-02-13 22:46:35 UTC) #13
sashab
Oh, sweet. That was easy lol. LGTM if there are no more culprits, lets land ...
3 years, 10 months ago (2017-02-20 00:37:08 UTC) #14
shend
On 2017/02/20 at 00:37:08, sashab wrote: > Oh, sweet. That was easy lol. LGTM if ...
3 years, 8 months ago (2017-04-05 02:47:52 UTC) #52
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/2686473004/100001
3 years, 8 months ago (2017-04-05 02:48:29 UTC) #55
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 02:54:18 UTC) #58
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/fe7b8a3b74de1097ffc1ff819c6b...

Powered by Google App Engine
This is Rietveld 408576698