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

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

Issue 2650903002: Ignore scroll node when checking whether a chunk can merge. (Closed)
Patch Set: Created 3 years, 11 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/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 da65dbdd8fec5eb487fc512fccd67f28099406e8..de2a817cc1632bae562a1cbf911c869e6f2a154a 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PropertyTreeState.h
@@ -74,6 +74,11 @@ class PLATFORM_EXPORT PropertyTreeState {
// element id then a default instance is returned.
const CompositorElementId compositorElementId() const;
+ // Returns equivalence of transform, clip and effect nodes. We explicitly
+ // ignore the scroll node state as it is not relevant for straight geometry
+ // calculation purposes.
+ bool equivalentGeometry(const PropertyTreeState& other) const;
+
enum InnermostNode {
None, // None means that all nodes are their root values
Transform,

Powered by Google App Engine
This is Rietveld 408576698