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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl

Issue 2938553002: Refactor make_computed_style_base.py Field class to link to a Group. (Closed)
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl b/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl
index 08600f1ba6ad506735d3a56c41683a5bcb1a920e..60e54f25f62c3a0ab7028c3147f736a612f30f3e 100644
--- a/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl
@@ -6,7 +6,7 @@
{{base.decl_getter_method(field)}}
{{base.decl_setter_method(field)}}
void {{field.setter_method_name}}({{field.type_name}}&& v) {
-{% if field.group_member_name %}
+{% if field.group %}
if (!({{getter_expression(field)}} == v))
{{setter_expression(field)}} = std::move(v);
{% else %}

Powered by Google App Engine
This is Rietveld 408576698