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

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

Issue 2879493003: Check if value changed when setting nested fields in ComputedStyleBase. (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
« no previous file with comments | « third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% import 'fields/base.tmpl' as base %} 1 {% import 'fields/base.tmpl' as base %}
2 {% from 'fields/field.tmpl' import encode, setter_expression %} 2 {% from 'fields/field.tmpl' import encode, set_if_changed %}
3 3
4 {% macro decl_public_methods(field) %} 4 {% macro decl_public_methods(field) %}
5 {{base.decl_getter_method(field)}} 5 {{base.decl_getter_method(field)}}
6 void {{field.setter_method_name}}() { 6 void {{field.setter_method_name}}() {
7 {{setter_expression(field)}} = {{encode(field, "true")}}; 7 {{set_if_changed(field, encode(field, "true"))|indent(2)}}
8 } 8 }
9 {% endmacro %} 9 {% endmacro %}
10 10
11 {% macro decl_protected_methods(field) -%} 11 {% macro decl_protected_methods(field) -%}
12 {{base.decl_internal_setter_method(field)}} 12 {{base.decl_internal_setter_method(field)}}
13 {%- endmacro %} 13 {%- endmacro %}
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698