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

Side by Side 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 unified diff | Download patch
OLDNEW
1 {% import 'fields/base.tmpl' as base %} 1 {% import 'fields/base.tmpl' as base %}
2 {% from 'fields/field.tmpl' import decode %} 2
3 {% macro decl_public_methods(field) %} 3 {% macro decl_public_methods(field) %}
4 {{base.decl_public_methods(field)}} 4 {{base.decl_initial_method(field)}}
5 {{base.decl_getter_method(field)}}
6 {{base.decl_setter_method(field)}}
5 void {{field.setter_method_name}}({{field.type_name}}&& v) { 7 void {{field.setter_method_name}}({{field.type_name}}&& v) {
6 {{field.name}} = std::move(v); 8 {{field.name}} = std::move(v);
7 } 9 }
10 {{base.decl_resetter_method(field)}}
8 {% endmacro %} 11 {% endmacro %}
9 12
10 {% macro decl_protected_methods(field) -%} 13 {% macro decl_protected_methods(field) -%}
11 {{field.type_name}}& {{field.internal_mutable_method_name}}() { 14 {{base.decl_mutable_getter_method(field)}}
12 return {{decode(field, field.name)}};
13 }
14 {%- endmacro %} 15 {%- endmacro %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698