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

Unified Diff: Source/core/rendering/compositing/GraphicsLayerTreeBuilder.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
Index: Source/core/rendering/compositing/GraphicsLayerTreeBuilder.cpp
diff --git a/Source/core/rendering/compositing/GraphicsLayerTreeBuilder.cpp b/Source/core/rendering/compositing/GraphicsLayerTreeBuilder.cpp
index 79bbfaa2cff5126d5124bfed8affce39b7dcd58d..47d017ed66891a42a03aa8e519b67b5eb2e2730d 100644
--- a/Source/core/rendering/compositing/GraphicsLayerTreeBuilder.cpp
+++ b/Source/core/rendering/compositing/GraphicsLayerTreeBuilder.cpp
@@ -126,8 +126,7 @@ void GraphicsLayerTreeBuilder::rebuild(RenderLayer& layer, AncestorInfo info)
}
if (layer.scrollParent()
- && layer.scrollParent()->hasCompositedLayerMapping()
- && layer.scrollParent()->scrollableArea()->hasOverlayScrollbars()
+ && layer.scrollParent()->needsToReparentOverflowControls()
&& layer.scrollParent()->scrollableArea()->topmostScrollChild() == &layer)
info.childLayersOfEnclosingCompositedLayer->append(layer.scrollParent()->compositedLayerMapping()->detachLayerForOverflowControls(*info.enclosingCompositedLayer));
}

Powered by Google App Engine
This is Rietveld 408576698