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

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

Issue 2667373002: Ensure PaintArtifactCompositor assigns a scroll tree index to all cc layers (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/TransformPaintPropertyNode.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
index e145ac4f83519287d1a4aebedadec3e9f1fda843..186fe5939736d7572652cce9e02bc0e6ca0c4ace 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.h
@@ -128,6 +128,11 @@ class PLATFORM_EXPORT TransformPaintPropertyNode
// scrolling, or nullptr otherwise.
const ScrollPaintPropertyNode* scrollNode() const { return m_scroll.get(); }
+ // Returns the scroll node this transform scrolls with respect to. If this
+ // is a scroll translation, scrollNode() can be returned. Otherwise, a full
+ // ancestor traversal can be required.
+ const ScrollPaintPropertyNode* findEnclosingScrollNode() const;
+
// If true, content with this transform node (or its descendant) appears in
// the plane of its parent. This is implemented by flattening the total
// accumulated transform from its ancestors.

Powered by Google App Engine
This is Rietveld 408576698