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

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

Issue 2826653002: Generate getters/setters for some fields on groups in ComputedStyle (Closed)
Patch Set: Clean up nits prelanding 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 %} 1 {% from 'fields/field.tmpl' import encode, argument_type %}
2 {% macro decl_methods(field) %} 2 {% macro decl_public_methods(field) %}
3 bool {{field.getter_method_name}}() const { 3 bool {{field.getter_method_name}}() const {
4 return {{field.name}}; 4 return {{field.name}};
5 } 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 {% macro decl_protected_methods(field) -%}
11 void {{field.internal_setter_method_name}}({{argument_type(field)}} v) {
12 {{field.name}} = {{encode(field, "v")}};
13 }
14 {%- endmacro %}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698