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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl

Issue 2876803003: Generate diffs for fields in ComputedStyle that use their public getters (Closed)
Patch Set: alancutter@'s suggestions 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/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 28006cabf0a4aea5176a84566b9fe40aa7936b2f..9afab7e48e9caa04bf8f8db82bd004249de6e6c6 100644
--- a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl
@@ -130,6 +130,7 @@ class CORE_EXPORT ComputedStyleBase {
{% for name, groups_to_diff in diff_functions_map.items() %}
bool {{name}}(const ComputedStyleFinal& other) const {
+ const ComputedStyleFinal& self = static_cast<const ComputedStyleFinal&>(*this);
{{fieldwise_diff(groups_to_diff)|indent(4)}}
return false;
}

Powered by Google App Engine
This is Rietveld 408576698