| 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 %}
|
| );
|
| }
|
|
|