| 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 0db48f70b6ad1e75ffc3c48b1e77e6de1f5f9572..3610c27a33da4cb4d9e898558b412ba432a862d7 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| @@ -2447,15 +2447,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 layoutObject()->layerTypeRequired() == 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();
|
|
|