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

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/fields/monotonic_flag.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 {% from 'fields/field.tmpl' import encode, argument_type %} 1 {% import 'fields/base.tmpl' as base %}
2 {% from 'fields/field.tmpl' import encode %}
3
2 {% macro decl_public_methods(field) %} 4 {% macro decl_public_methods(field) %}
3 bool {{field.getter_method_name}}() const { 5 {{base.decl_getter_method(field)}}
4 return {{field.name}};
5 }
6 void {{field.setter_method_name}}() { 6 void {{field.setter_method_name}}() {
7 {{field.name}} = {{encode(field, "true")}}; 7 {{field.name}} = {{encode(field, "true")}};
8 } 8 }
9 {% endmacro %} 9 {% endmacro %}
10
10 {% macro decl_protected_methods(field) -%} 11 {% macro decl_protected_methods(field) -%}
11 void {{field.internal_setter_method_name}}({{argument_type(field)}} v) { 12 {{base.decl_internal_setter_method(field)}}
12 {{field.name}} = {{encode(field, "v")}};
13 }
14 {%- endmacro %} 13 {%- endmacro %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698