Chromium Code Reviews| Index: public/platform/WebLayer.h |
| diff --git a/public/platform/WebLayer.h b/public/platform/WebLayer.h |
| index c21139208c67081f26e650d8614a0b85b2b135e6..2daa457ef0c2455b39a7ccc8a87913b3d17b3797 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 |
|
enne (OOO)
2013/08/22 20:54:30
"its parent's" => "its scroll parent's"?
"of the s
|
| + // 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*) { } |
| + |
| // Scrolling |
| virtual void setScrollPosition(WebPoint) = 0; |
| virtual WebPoint scrollPosition() const = 0; |