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

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

Issue 2829213002: Clean up ComputedStyle field templates. (Closed)
Patch Set: Created 3 years, 8 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 7cfd99671a4bddd9d5446441f3a42952be9cbdae..c3375d97efc34cbcf23402f4b8ae0f9e9d4a7fa7 100644
--- a/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl
@@ -1,14 +1,15 @@
{% import 'fields/base.tmpl' as base %}
-{% from 'fields/field.tmpl' import decode %}
+
{% macro decl_public_methods(field) %}
-{{base.decl_public_methods(field)}}
+{{base.decl_initial_method(field)}}
+{{base.decl_getter_method(field)}}
+{{base.decl_setter_method(field)}}
void {{field.setter_method_name}}({{field.type_name}}&& v) {
{{field.name}} = std::move(v);
}
+{{base.decl_resetter_method(field)}}
{% endmacro %}
{% macro decl_protected_methods(field) -%}
-{{field.type_name}}& {{field.internal_mutable_method_name}}() {
- return {{decode(field, field.name)}};
-}
+{{base.decl_mutable_getter_method(field)}}
{%- endmacro %}

Powered by Google App Engine
This is Rietveld 408576698