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

Issue 2830983003: Remove the concept of 'nonproperties' from ComputedStyle generator. (Closed)

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

Description

Remove the concept of 'nonproperties' from ComputedStyle generator. When we generate ComputedStyle, we differentiate between properties (which are meant to correspond to CSS properties) and nonproperties (everything else). However, this terminology is confusing: - Some nonproperties are derived from real CSS properties (e.g. hasSimpleUnderline). - The generator code contains a lot of "for property_ in nonproperties" which is quite confusing. - The name does not reveal the actual difference between properties and nonproperties in terms of code generation. This patch removes the field role of 'nonproperty' in favour of the parameter 'has_custom_compare_and_copy'. So there are only two field roles: 'property' (which includes flags like 'unique' and 'emptyState') and 'inherited_flag'. BUG=628043 Review-Url: https://codereview.chromium.org/2830983003 Cr-Commit-Position: refs/heads/master@{#468279} Committed: https://chromium.googlesource.com/chromium/src/+/a7bdae0c8fc2af8615d676c546cef735a131a8f1

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -17 lines) Patch
M third_party/WebKit/Source/build/scripts/make_computed_style_base.py View 1 9 chunks +11 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl View 1 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (18 generated)
shend
Hi Naina, PTAL :)
3 years, 8 months ago (2017-04-21 03:54:37 UTC) #6
nainar
lgtm
3 years, 8 months ago (2017-04-21 03:59:26 UTC) #7
shend
Hi Alan, PTAL :)
3 years, 8 months ago (2017-04-21 04:05:06 UTC) #9
alancutter (OOO until 2018)
lgtm
3 years, 8 months ago (2017-04-21 05:25:25 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/2830983003/20001
3 years, 7 months ago (2017-05-01 03:34:12 UTC) #21
commit-bot: I haz the power
3 years, 7 months ago (2017-05-01 04:13:48 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a7bdae0c8fc2af8615d676c546ce...

Powered by Google App Engine
This is Rietveld 408576698