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

Unified Diff: Source/core/rendering/compositing/GraphicsLayerUpdater.cpp

Issue 397713004: Overlay scrollbars must respect ancestor clip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 5 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/rendering/compositing/GraphicsLayerTreeBuilder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/GraphicsLayerUpdater.cpp
diff --git a/Source/core/rendering/compositing/GraphicsLayerUpdater.cpp b/Source/core/rendering/compositing/GraphicsLayerUpdater.cpp
index ade274a786d3f3757a68696ef1fb64f4b5bf9f45..2b4c0ceb9c15fef4380f2f67eed8d688f249b549 100644
--- a/Source/core/rendering/compositing/GraphicsLayerUpdater.cpp
+++ b/Source/core/rendering/compositing/GraphicsLayerUpdater.cpp
@@ -62,6 +62,11 @@ public:
return layer.stackingNode()->isNormalFlowOnly() ? m_compositingAncestor : m_compositingStackingContext;
}
+ const RenderLayer* compositingStackingContext() const
+ {
+ return m_compositingStackingContext;
+ }
+
private:
const RenderLayer* m_compositingStackingContext;
const RenderLayer* m_compositingAncestor;
@@ -109,7 +114,7 @@ void GraphicsLayerUpdater::updateRecursive(RenderLayer& layer, UpdateType update
if (mapping->updateGraphicsLayerConfiguration())
m_needsRebuildTree = true;
- mapping->updateGraphicsLayerGeometry(compositingContainer, layersNeedingPaintInvalidation);
+ mapping->updateGraphicsLayerGeometry(compositingContainer, context.compositingStackingContext(), layersNeedingPaintInvalidation);
if (mapping->hasUnpositionedOverflowControlsLayers())
layer.scrollableArea()->positionOverflowControls(IntSize());
« no previous file with comments | « Source/core/rendering/compositing/GraphicsLayerTreeBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698