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

Issue 2667543002: Moved nonproperty 'unique' to be generated in ComputedStyleBase. (Closed)

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

Description

Moved nonproperty 'unique' to be generated in ComputedStyleBase. Currently we are generating some CSS property fields in ComputedStyle. This patch allows the code generator to generate nonproperty fields as well. Nonproperty fields are member variables in ComputedStyle that are not actually CSS properties (e.g. m_isLink, m_unique). Property fields are mostly enums, whereas most nonproperty fields are boolean flags. To show that this is working, this patch move the nonproperty field 'unique' to be generated in ComputedStyleBase. Also moved getter / setter methods to be generated in ComputedStyleBase. BUG=628043 Review-Url: https://codereview.chromium.org/2667543002 Cr-Commit-Position: refs/heads/master@{#450238} Committed: https://chromium.googlesource.com/chromium/src/+/dfb72e700f9603d638fb9510d9c2f015c26cb8e8

Patch Set 1 #

Patch Set 2 : Add comment #

Patch Set 3 : Rebase onto master #

Total comments: 6

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -9 lines) Patch
M third_party/WebKit/Source/build/scripts/make_computed_style_base.py View 1 2 3 4 4 chunks +37 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 39 (24 generated)
shend
Hi Naina, PTAL :)
3 years, 10 months ago (2017-02-02 03:03:44 UTC) #3
nainar
lgtm
3 years, 10 months ago (2017-02-02 04:40:21 UTC) #9
shend
Hi Sasha, PTAL
3 years, 10 months ago (2017-02-02 04:47:01 UTC) #11
sashab
https://codereview.chromium.org/2667543002/diff/40001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl (right): https://codereview.chromium.org/2667543002/diff/40001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode106 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:106: {% if field.is_property or field.is_inherited_flag %} Do you need ...
3 years, 10 months ago (2017-02-03 04:53:06 UTC) #17
shend
Hi Sasha, very interesting points. I replied to your comments, let me know what you ...
3 years, 10 months ago (2017-02-03 05:11:33 UTC) #18
sashab
How many nonproperty fields are there? Could we write a quick rename patch that just ...
3 years, 10 months ago (2017-02-03 05:21:07 UTC) #19
sashab
So I guess to answer your question: I don't know if there's a particular reason ...
3 years, 10 months ago (2017-02-03 05:22:43 UTC) #20
shend
On 2017/02/03 at 05:22:43, sashab wrote: > So I guess to answer your question: I ...
3 years, 10 months ago (2017-02-03 05:39:22 UTC) #21
shend
Sasha PTAL again, I've refactored the nonproperty setters to match the property ones.
3 years, 10 months ago (2017-02-06 04:03:08 UTC) #24
sashab
lgtm
3 years, 10 months ago (2017-02-07 02:56:27 UTC) #26
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/2667543002/60001
3 years, 10 months ago (2017-02-07 23:44:37 UTC) #29
shend
Hi Eddy, PTAL :)
3 years, 10 months ago (2017-02-13 22:03:21 UTC) #32
meade_UTC10
lgtm
3 years, 10 months ago (2017-02-13 23:10:59 UTC) #33
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/2667543002/80001
3 years, 10 months ago (2017-02-14 01:56:12 UTC) #36
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 04:13:45 UTC) #39
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/dfb72e700f9603d638fb9510d9c2...

Powered by Google App Engine
This is Rietveld 408576698