| 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 11dc3c44a8cbb4f30a2dccb3b745f375ba224e6d..04d4c9cd7e111a2384ab1132d1adaa43b40ac19b 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| @@ -2449,15 +2449,25 @@ bool PaintLayer::childBackgroundIsKnownToBeOpaqueInRect(const LayoutRect& localR
|
| return false;
|
| }
|
|
|
| -bool PaintLayer::shouldBeSelfPaintingLayer() const
|
| +bool PaintLayer::isSelfPaintingLayerForIntrinsicOrScrollingReasons() const
|
| {
|
| - if (layoutObject()->isLayoutPart() && toLayoutPart(layoutObject())->requiresAcceleratedCompositing())
|
| - return true;
|
| return m_layerType == NormalPaintLayer
|
| || (m_scrollableArea && m_scrollableArea->hasOverlayScrollbars())
|
| || needsCompositedScrolling();
|
| }
|
|
|
| +bool PaintLayer::shouldBeSelfPaintingLayer() const
|
| +{
|
| + if (layoutObject()->isLayoutPart() && toLayoutPart(layoutObject())->requiresAcceleratedCompositing())
|
| + return true;
|
| + return isSelfPaintingLayerForIntrinsicOrScrollingReasons();
|
| +}
|
| +
|
| +bool PaintLayer::isSelfPaintingOnlyBecauseIsCompositedPart() const
|
| +{
|
| + return shouldBeSelfPaintingLayer() && !isSelfPaintingLayerForIntrinsicOrScrollingReasons();
|
| +}
|
| +
|
| void PaintLayer::updateSelfPaintingLayer()
|
| {
|
| bool isSelfPaintingLayer = shouldBeSelfPaintingLayer();
|
|
|