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

Unified Diff: public/platform/WebLayer.h

Issue 22419002: Set up clip and scroll parents on the blink side. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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: public/platform/WebLayer.h
diff --git a/public/platform/WebLayer.h b/public/platform/WebLayer.h
index 8c6a92d9e7919c3f99cdfbc127b74ca4e8b202d9..294f66acc8afba4318504d15b82781f41ef585df 100644
--- a/public/platform/WebLayer.h
+++ b/public/platform/WebLayer.h
@@ -167,6 +167,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*) { }
+
+ // 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*) { }
+
// Transfers all animations running on the current layer.
virtual void transferAnimationsTo(WebLayer*) { }
« Source/core/page/scrolling/ScrollingCoordinator.cpp ('K') | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698