Chromium Code Reviews| 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(); |
|
Stephen Chennney
2016/09/15 20:08:37
Indent.
And add a comment here about why composit
flackr
2016/09/15 20:28:37
I'm confused, isn't that the correct indent for tw
|
| if (shouldPaintOntoScrollingContentsLayer != backgroundPaintsOntoScrollingContentsLayer()) { |
| m_backgroundPaintsOntoScrollingContentsLayer = shouldPaintOntoScrollingContentsLayer; |
| // If the background is no longer painted onto the scrolling contents |