| Index: Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp
|
| diff --git a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp
|
| index df498e8702a22dfb8dd8b3040fb38080fa5c32ff..82489596a73cf2d8af8aa4af7e6371e460bb4990 100644
|
| --- a/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp
|
| +++ b/Source/core/layout/compositing/DeprecatedPaintLayerCompositor.cpp
|
| @@ -778,7 +778,8 @@ void DeprecatedPaintLayerCompositor::updateDirectCompositingReasons(DeprecatedPa
|
|
|
| bool DeprecatedPaintLayerCompositor::canBeComposited(const DeprecatedPaintLayer* layer) const
|
| {
|
| - return m_hasAcceleratedCompositing && layer->isSelfPaintingLayer() && !layer->subtreeIsInvisible() && !layer->layoutObject()->isLayoutFlowThread();
|
| + const bool hasCompositorAnimation = m_compositingReasonFinder.requiresCompositingForAnimation(*layer->layoutObject()->style());
|
| + return m_hasAcceleratedCompositing && (hasCompositorAnimation || !layer->subtreeIsInvisible()) && layer->isSelfPaintingLayer() && !layer->layoutObject()->isLayoutFlowThread();
|
| }
|
|
|
| // Return true if the given layer is a stacking context and has compositing child
|
|
|