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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h

Issue 2289833002: Disable clipping on root scroller's ancestors. (Closed)
Patch Set: Also setNeedsCompositingUpdate from TopDocumentRootScrollerController Created 4 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
Index: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h
index fbe3af31fe120941880ea97fa1b543c2c864fc25..98e6a4b96bd441d1373c437a312ca3882556afe8 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h
@@ -122,6 +122,7 @@ public:
GraphicsLayer* frameScrollLayer() const;
GraphicsLayer* scrollLayer() const;
GraphicsLayer* containerLayer() const;
+ GraphicsLayer* rootContentLayer() const;
enum RootLayerAttachment {
RootLayerUnattached,
@@ -133,6 +134,12 @@ public:
void updateRootLayerAttachment();
void updateRootLayerPosition();
+ // If the root scroller isn't the root layer then the PaintLayerCompositor
+ // must disable clipping on its layers so that the root scroller can
+ // expand/shrink its clipping layer in response to top controls and have
+ // the result be visible.
+ void updateClippingOnCompositorLayers();
+
void setIsInWindow(bool);
static PaintLayerCompositor* frameContentsCompositor(LayoutPart*);

Powered by Google App Engine
This is Rietveld 408576698