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

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

Issue 2887333003: Generate StyleRareInheritedData 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/build/scripts/templates/fields/group.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/fields/group.tmpl b/third_party/WebKit/Source/build/scripts/templates/fields/group.tmpl
index 3b62d0a290e0dd5805de69989ddd7a5d7e0daa5d..56d3f9db36dc79e88c04503199e9e0cd1cea6d1a 100644
--- a/third_party/WebKit/Source/build/scripts/templates/fields/group.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/fields/group.tmpl
@@ -1,4 +1,4 @@
-{% from 'fields/field.tmpl' import encode, declare_storage %}
+{% from 'fields/field.tmpl' import encode, declare_storage, compare %}
{% from 'macros.tmpl' import print_if %}
{% macro define_field_group_class(group): -%}
class {{group.type_name}} : public RefCountedCopyable<{{group.type_name}}> {
@@ -13,7 +13,7 @@ class {{group.type_name}} : public RefCountedCopyable<{{group.type_name}}> {
bool operator==(const {{group.type_name}}& other) const {
return (
{% for field in group.fields %}
- {{field.name}} == other.{{field.name}}{{print_if(not loop.last, ' &&')}}
+ {{compare(field.wrapper_pointer_name, field.name, "other")}}{{print_if(not loop.last, ' &&')}}
{% endfor %}
);
}

Powered by Google App Engine
This is Rietveld 408576698