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

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: 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 d7f6a5a100948c2b9b9ac23c35d99896599e2df3..5f71b7adcbffe8352c7830a59881d48e5469c524 100644
--- a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl
@@ -114,6 +114,7 @@ class CORE_EXPORT ComputedStyleBase {
{% for name, groups_to_diff in diff_functions_map.items() %}
bool {{name}}(const T& other) const {
+ const T& self = static_cast<const T&>(*this);
nainar 2017/05/12 06:48:27 Can't decide if this should be in this tmpl file o
shend 2017/05/12 06:59:17 Should be here. If we want to use multiple fieldwi
nainar 2017/05/12 07:07:47 yup, passing self into fieldwise_diff
{{fieldwise_diff(groups_to_diff)|indent(2)}}
return false;
}

Powered by Google App Engine
This is Rietveld 408576698