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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl

Issue 2902433002: Generates predicates to test in diff functions in ComputedStyle (Closed)
Patch Set: format changes 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl b/third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl
index 8f0d15d8ca90b30cf9ec2095c01454c4aa62cd36..1538c97f0640928df413dcd2211396e7751f649f 100644
--- a/third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/fields/field.tmpl
@@ -131,4 +131,8 @@ if ({{group.group_name}}.Get() != other.{{group.group_name}}.Get()) {
if (self.{{expression}} != other.{{expression}})
return true;
{% endfor %}
+{% for predicate in group_to_diff.predicates %}
+if (!self.{{predicate}})
+ return true;
+{% endfor %}
{% endmacro %}

Powered by Google App Engine
This is Rietveld 408576698