Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
index 2195dd2dd6621e590f95d99727aba23516cab2d1..020d8b1ea568f0f05eab043b87de04de511ba58c 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
@@ -299,7 +299,9 @@ void CompositedLayerMapping::updateIsRootForIsolatedGroup() |
void CompositedLayerMapping::updateBackgroundPaintsOntoScrollingContentsLayer() |
{ |
- bool shouldPaintOntoScrollingContentsLayer = m_owningLayer.shouldPaintBackgroundOntoScrollingContentsLayer(); |
+ bool shouldPaintOntoScrollingContentsLayer = |
+ m_owningLayer.canPaintBackgroundOntoScrollingContentsLayer() |
+ && m_owningLayer.needsCompositedScrolling(); |
chrishtr
2016/09/15 20:15:47
It's PaintLayerScrollableArea::usesCompositedScrol
flackr
2016/09/15 20:28:37
Done. I can add it, but I shouldn't need to check
|
if (shouldPaintOntoScrollingContentsLayer != backgroundPaintsOntoScrollingContentsLayer()) { |
m_backgroundPaintsOntoScrollingContentsLayer = shouldPaintOntoScrollingContentsLayer; |
// If the background is no longer painted onto the scrolling contents |