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

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

Issue 2855583002: Fix ComputedStyleBase.h.tmpl to generate accessors for fields on groups (Closed)
Patch Set: Rebase Created 3 years, 7 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 setter_expression %} 2 {% from 'fields/field.tmpl' import setter_expression %}
3 3
4 {% macro decl_public_methods(field) %} 4 {% macro decl_public_methods(field) %}
5 {{base.decl_initial_method(field)}} 5 {{base.decl_initial_method(field)}}
6 {{base.decl_getter_method(field)}} 6 {{base.decl_getter_method(field)}}
7 {{base.decl_setter_method(field)}} 7 {{base.decl_setter_method(field)}}
8 void {{field.setter_method_name}}({{field.type_name}}&& v) { 8 void {{field.setter_method_name}}({{field.type_name}}&& v) {
9 {{setter_expression(field)}} = std::move(v); 9 {{setter_expression(field)}} = std::move(v);
10 } 10 }
11 {{base.decl_resetter_method(field)}} 11 {{base.decl_resetter_method(field)}}
12 {% endmacro %} 12 {% endmacro %}
13 13
14 {% macro decl_protected_methods(field) -%} 14 {% macro decl_protected_methods(field) -%}
15 {{base.decl_mutable_getter_method(field)}} 15 {{base.decl_mutable_method(field)}}
16 {%- endmacro %} 16 {%- endmacro %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698