Index: Source/core/rendering/compositing/CompositingReasonFinder.cpp |
diff --git a/Source/core/rendering/compositing/CompositingReasonFinder.cpp b/Source/core/rendering/compositing/CompositingReasonFinder.cpp |
index 6f9ae626c35aa7cd735e75bf78d1f9c5a653df8d..ec2eadd7ad4066e9242829b05d28d1ef01f19b64 100644 |
--- a/Source/core/rendering/compositing/CompositingReasonFinder.cpp |
+++ b/Source/core/rendering/compositing/CompositingReasonFinder.cpp |
@@ -153,6 +153,22 @@ bool CompositingReasonFinder::requiresCompositingForAnimation(RenderObject* rend |
return shouldCompositeForActiveAnimations(*renderer); |
} |
+bool CompositingReasonFinder::requiresCompositingForTransition(RenderObject* renderer) const |
+{ |
+ if (!(m_compositingTriggers & ChromeClient::AnimationTrigger)) |
+ return false; |
+ |
+ if (Settings* settings = m_renderView.document().settings()) { |
+ if (!settings->acceleratedCompositingForTransitionEnabled()) |
+ return false; |
+ } |
+ |
+ return renderer->style()->transitionForProperty(CSSPropertyOpacity) |
+ || renderer->style()->transitionForProperty(CSSPropertyWebkitFilter) |
+ || renderer->style()->transitionForProperty(CSSPropertyTransform) |
+ || renderer->style()->transitionForProperty(CSSPropertyWebkitTransform); |
+} |
+ |
bool CompositingReasonFinder::requiresCompositingForFilters(RenderObject* renderer) const |
{ |
if (!(m_compositingTriggers & FilterTrigger)) |