Index: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
diff --git a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
index cc98bc3437826210b5bcd6e7df41e7dc4c68aa7d..06c2ba99ff9fef47c3883bb27ee148f62374f3b7 100644 |
--- a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
+++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
@@ -128,7 +128,8 @@ class CORE_EXPORT ComputedStyleBase { |
{% for name, groups_to_diff in diff_functions_map.items() %} |
bool {{name}}(const ComputedStyleFinal& other) const { |
- {{fieldwise_diff(groups_to_diff)|indent(2)}} |
+ const ComputedStyleFinal& self = static_cast<const ComputedStyleFinal&>(*this); |
+ {{fieldwise_diff(self, groups_to_diff)|indent(2)}} |
shend
2017/05/12 07:10:41
might have to be "self" in quotes.
nainar
2017/05/12 07:14:31
yup. lol .done
|
return false; |
} |
{% endfor %} |