| 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 8c653ecaa707c59f8611cfb8455116e5da659abf..e28420a8a41eb37997bd9bc4c4a7ce3be448a9a8 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| @@ -2452,6 +2452,13 @@ bool PaintLayer::shouldBeSelfPaintingLayer() const
|
| || needsCompositedScrolling();
|
| }
|
|
|
| +bool PaintLayer::shouldPaintBackgroundOntoForeground() const
|
| +{
|
| + return scrollsOverflow()
|
| + && layoutObject()->style()->hasEntirelyLocalBackground()
|
| + && !stackingNode()->hasNegativeZOrderList();
|
| +}
|
| +
|
| void PaintLayer::updateSelfPaintingLayer()
|
| {
|
| bool isSelfPaintingLayer = shouldBeSelfPaintingLayer();
|
|
|