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

Issue 2811273003: Allow (non)property fields to be hardcoded in make_computed_style_base. (Closed)

Created:
3 years, 8 months ago by shend
Modified:
3 years, 8 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow (non)property fields to be hardcoded in make_computed_style_base. Currently we divide ComputedStyle fields into two groups: properties and nonproperties. Properties represent actual CSS properties and are read from CSSProperties.json5. Nonproperties represent fields that do not correspond to a CSS property and are read from a hardcoded list in the generator script. However, some fields act like properties, but do not correspond to CSS properties (e.g. margin is a combination of four properties, but it itself is not a CSS property). These need to be stored in the hardcoded list. But since everything in the hardcoded list is considered a nonproperty, this will not generate the right code. Hence, this patch changes the hardcoded list to be rather a list of "extra" fields which can be property or nonproperty fields. To distinguish between properties and nonproperties, we introduce a has_custom_compare_and_copy parameter. If true, the field is a nonproperty. This is prework for replacing the concept of nonproperties with has_custom_compare_and_copy entirely. This patch does not affect existing behaviour. BUG=628043 Review-Url: https://codereview.chromium.org/2811273003 Cr-Commit-Position: refs/heads/master@{#466166} Committed: https://chromium.googlesource.com/chromium/src/+/abefb698e5e6ad81853ffdd0560c9efa4740464d

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Patch Set 4 : has_custom_compare_and_copy #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Total comments: 2

Patch Set 7 : Rebase #

Total comments: 2

Patch Set 8 : Address comments #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

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

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 37 (30 generated)
shend
Hi Bugs, PTAL
3 years, 8 months ago (2017-04-12 07:32:16 UTC) #3
nainar
Not Bugs but lgtm :P
3 years, 8 months ago (2017-04-12 18:07:40 UTC) #4
shend
Hi Alan, PTAL
3 years, 8 months ago (2017-04-12 23:28:31 UTC) #6
alancutter (OOO until 2018)
lgtm https://codereview.chromium.org/2811273003/diff/100001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py File third_party/WebKit/Source/build/scripts/make_computed_style_base.py (right): https://codereview.chromium.org/2811273003/diff/100001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode321 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:321: property_['has_custom_compare_and_copy'] = False # All CSS properties that ...
3 years, 8 months ago (2017-04-19 04:40:16 UTC) #24
shend
https://codereview.chromium.org/2811273003/diff/100001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py File third_party/WebKit/Source/build/scripts/make_computed_style_base.py (right): https://codereview.chromium.org/2811273003/diff/100001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode321 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:321: property_['has_custom_compare_and_copy'] = False On 2017/04/19 at 04:40:15, alancutter wrote: ...
3 years, 8 months ago (2017-04-19 07:20:31 UTC) #25
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/2811273003/180001
3 years, 8 months ago (2017-04-20 22:30:48 UTC) #34
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 22:34:56 UTC) #37
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/abefb698e5e6ad81853ffdd0560c...

Powered by Google App Engine
This is Rietveld 408576698