| 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 9ccc571f92f13b4630fbe0964a6a8d79db5369b6..58d0b742cd97da526cd770a460c5ae826a903fd9 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| @@ -298,7 +298,7 @@ void CompositedLayerMapping::updateIsRootForIsolatedGroup()
|
|
|
| void CompositedLayerMapping::updateBackgroundPaintsOntoScrollingContentsLayer()
|
| {
|
| - bool shouldPaintOntoScrollingContentsLayer = shouldPaintBackgroundOntoScrollingContentsLayer();
|
| + bool shouldPaintOntoScrollingContentsLayer = m_owningLayer.shouldPaintBackgroundOntoScrollingContentsLayer();
|
| if (shouldPaintOntoScrollingContentsLayer != backgroundPaintsOntoScrollingContentsLayer()) {
|
| m_backgroundPaintsOntoScrollingContentsLayer = shouldPaintOntoScrollingContentsLayer;
|
| // If the background is no longer painted onto the scrolling contents
|
| @@ -2583,14 +2583,6 @@ bool CompositedLayerMapping::invalidateLayerIfNoPrecedingEntry(size_t indexToCle
|
| return false;
|
| }
|
|
|
| -bool CompositedLayerMapping::shouldPaintBackgroundOntoScrollingContentsLayer() const
|
| -{
|
| - return !m_owningLayer.isRootLayer()
|
| - && m_owningLayer.scrollsOverflow()
|
| - && m_owningLayer.layoutObject()->style()->hasEntirelyLocalBackground()
|
| - && !m_owningLayer.stackingNode()->hasNegativeZOrderList();
|
| -}
|
| -
|
| bool CompositedLayerMapping::updateSquashingLayerAssignment(PaintLayer* squashedLayer, size_t nextSquashedLayerIndex)
|
| {
|
| GraphicsLayerPaintInfo paintInfo;
|
|
|