| 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 e5e5c68cd33972c9ed798ab93c685111967bfc0b..482e8858307dc5a3f2c89cc72580da1e4756efed 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| @@ -2443,15 +2443,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();
|
|
|