| Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| index ec0536aca76519402847e4444979a0d646a4c544..5f7ed91939253908e0f17b940a8f7bb77abfd3ae 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| @@ -2627,13 +2627,15 @@ GraphicsLayer* PaintLayer::graphicsLayerBackingForScrolling() const {
|
| }
|
| }
|
|
|
| -bool PaintLayer::canPaintBackgroundOntoScrollingContentsLayer() const {
|
| - if (isRootLayer() || !scrollsOverflow() ||
|
| - !layoutObject()->hasLocalEquivalentBackground())
|
| - return false;
|
| -
|
| +BackgroundPaintLocation PaintLayer::backgroundPaintLocation() const {
|
| + BackgroundPaintLocation location =
|
| + isRootLayer() || !scrollsOverflow()
|
| + ? BackgroundPaintInGraphicsLayer
|
| + : layoutObject()->backgroundPaintLocation();
|
| m_stackingNode->updateLayerListsIfNeeded();
|
| - return !m_stackingNode->hasNegativeZOrderList();
|
| + if (m_stackingNode->hasNegativeZOrderList())
|
| + location = BackgroundPaintInGraphicsLayer;
|
| + return location;
|
| }
|
|
|
| void PaintLayer::ensureCompositedLayerMapping() {
|
|
|