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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h

Issue 2573883002: Refactor PaintChunkProperties to use PropertyTreeState (Closed)
Patch Set: none Created 4 years 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/platform/graphics/paint/PropertyTreeState.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h b/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h
index 6a6f1e2eabc3cdfe92fe78ec554645933f14b608..955a8ccea9cbc734c398302d83ed9f005123fbc9 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h
@@ -74,6 +74,12 @@ class PropertyTreeState {
RefPtr<const EffectPaintPropertyNode> m_effect;
RefPtr<const ScrollPaintPropertyNode> m_scroll;
};
+
+inline bool operator==(const PropertyTreeState& a, const PropertyTreeState& b) {
+ return a.transform() == b.transform() && a.clip() == b.clip() &&
+ a.effect() == b.effect() && a.scroll() == b.scroll();
+}
+
} // namespace blink
#endif // PropertyTreeState_h

Powered by Google App Engine
This is Rietveld 408576698