Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
index 544a1015bd728f69ca0872a87dbb7cd283c9fa65..e6ce0926a2f6682018e280622a60e61e4f4bfe99 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
@@ -383,8 +383,7 @@ void PaintLayerScrollableArea::setScrollOffset(const DoublePoint& newScrollOffse |
if (box().view()->compositor()->inCompositingMode()) { |
bool onlyScrolledCompositedLayers = scrollsOverflow() |
- && !layer()->hasVisibleNonLayerContent() |
- && !layer()->hasNonCompositedChild() |
+ && layer()->isAllScrollingContentComposited() |
&& box().style()->backgroundLayers().attachment() != LocalBackgroundAttachment; |
if (usesCompositedScrolling() || onlyScrolledCompositedLayers) |