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

Unified Diff: public/platform/WebLayer.h

Issue 23903012: Set up scroll and clip parents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make WebLayer additions pure virtual. Created 7 years, 3 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
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebLayer.h
diff --git a/public/platform/WebLayer.h b/public/platform/WebLayer.h
index c21139208c67081f26e650d8614a0b85b2b135e6..dd84083d215b141f253b11a6c574622eb7ab8437 100644
--- a/public/platform/WebLayer.h
+++ b/public/platform/WebLayer.h
@@ -162,6 +162,16 @@ public:
// Returns true if this layer has any active animations - useful for tests.
virtual bool hasActiveAnimation() = 0;
+ // If a scroll parent is set, this layer will inherit its parent's scroll
+ // delta and offset even though it will not be a descendant of the scroll
+ // in the layer hierarchy.
+ virtual void setScrollParent(WebLayer*) = 0;
+
+ // A layer will not respect any clips established by layers between it and
+ // its nearest clipping ancestor. Note, the clip parent must be an ancestor.
+ // This is not a requirement of the scroll parent.
+ virtual void setClipParent(WebLayer*) = 0;
+
// Scrolling
virtual void setScrollPosition(WebPoint) = 0;
virtual WebPoint scrollPosition() const = 0;
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698