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

Issue 2826653002: Generate getters/setters for some fields on groups in ComputedStyle (Closed)

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

Description

Generate getters/setters for some fields on groups in ComputedStyle This patch generates getters/setters as needed for monotic_flags, external and storage_only fields on groups in ComputedStyle. In a following patch we will use this to access members of groups through these getters/setters instead of directly as <group_name>.<field_name>. Generated diff here: https://gist.github.com/nainar/bf6ca12c12ff7283d90ebed7640cf7be/revisions Please note these functions are unused for now. BUG=710938 Review-Url: https://codereview.chromium.org/2826653002 Cr-Commit-Position: refs/heads/master@{#465919} Committed: https://chromium.googlesource.com/chromium/src/+/7185f26bb323f0650f8831f6e2d2c976fd373e55

Patch Set 1 #

Patch Set 2 : Adds protected methods for all fields that need it #

Total comments: 8

Patch Set 3 : Append Internal to all protected methods #

Total comments: 4

Patch Set 4 : Incorporating shend@'s suggestions #

Total comments: 22

Patch Set 5 : Add new macro argument_type to be used in setter macros #

Total comments: 10

Patch Set 6 : suzyh@'s comments #

Total comments: 2

Patch Set 7 : Clean up nits prelanding #

Messages

Total messages: 51 (36 generated)
nainar
Darren, PTAL? More specifically curious about the spurious new lines. Thanks!
3 years, 8 months ago (2017-04-18 06:46:57 UTC) #3
shend
https://codereview.chromium.org/2826653002/diff/20001/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/2826653002/diff/20001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode99 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:99: {% endif %} The public methods have a comment ...
3 years, 8 months ago (2017-04-19 03:41:29 UTC) #13
shend
https://codereview.chromium.org/2826653002/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/2826653002/diff/40001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode97 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:97: {% if field.field_template == 'storage_only' or field.field_template == 'monotonic_flag' ...
3 years, 8 months ago (2017-04-19 03:46:20 UTC) #14
nainar
shend@ PTAL? Thanks! https://codereview.chromium.org/2826653002/diff/20001/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/2826653002/diff/20001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl#newcode99 third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl:99: {% endif %} Makes sense. Done ...
3 years, 8 months ago (2017-04-19 04:02:46 UTC) #18
shend
lgtm
3 years, 8 months ago (2017-04-19 04:20:30 UTC) #19
nainar
Suzy, PTAL? Let me know if you don't have enough context and I can reassign.
3 years, 8 months ago (2017-04-19 04:24:03 UTC) #21
suzyh_UTC10 (ex-contributor)
I don't really have enough familiarity with it to give a good review, but I ...
3 years, 8 months ago (2017-04-19 08:03:33 UTC) #24
nainar
https://codereview.chromium.org/2826653002/diff/60001/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/2826653002/diff/60001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode138 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:138: self.internal_mutable_method_name = method_name(join_name('Mutable', name_for_methods, 'Internal')) That's because we need ...
3 years, 8 months ago (2017-04-19 08:49:35 UTC) #28
suzyh_UTC10 (ex-contributor)
A few more nits. Typo in CL description "we will be use this". https://codereview.chromium.org/2826653002/diff/60001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py File ...
3 years, 8 months ago (2017-04-20 00:12:18 UTC) #32
nainar
Suzy, Made the changes you asked for. PTAL? Thanks! https://codereview.chromium.org/2826653002/diff/60001/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/2826653002/diff/60001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode138 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:138: ...
3 years, 8 months ago (2017-04-20 02:53:04 UTC) #36
suzyh_UTC10 (ex-contributor)
lgtm after final comments addressed. https://codereview.chromium.org/2826653002/diff/60001/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/2826653002/diff/60001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode138 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:138: self.internal_mutable_method_name = method_name(join_name('Mutable', name_for_methods, ...
3 years, 8 months ago (2017-04-20 03:48:03 UTC) #39
shend
https://codereview.chromium.org/2826653002/diff/100001/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl File third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl (right): https://codereview.chromium.org/2826653002/diff/100001/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl#newcode11 third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl:11: {{return_type}} {{field.internal_mutable_method_name}}() { I think this one can stay ...
3 years, 8 months ago (2017-04-20 03:57:55 UTC) #40
nainar
https://codereview.chromium.org/2826653002/diff/60001/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/2826653002/diff/60001/third_party/WebKit/Source/build/scripts/make_computed_style_base.py#newcode138 third_party/WebKit/Source/build/scripts/make_computed_style_base.py:138: self.internal_mutable_method_name = method_name(join_name('Mutable', name_for_methods, 'Internal')) Done. https://codereview.chromium.org/2826653002/diff/60001/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl File third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl ...
3 years, 8 months ago (2017-04-20 05:15:58 UTC) #43
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/2826653002/120001
3 years, 8 months ago (2017-04-20 05:23:19 UTC) #48
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 06:44:06 UTC) #51
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/7185f26bb323f0650f8831f6e2d2...

Powered by Google App Engine
This is Rietveld 408576698