Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1835)

Unified Diff: Source/core/rendering/compositing/CompositingReasonFinder.cpp

Issue 98663004: Add support for unprefixed CSS Transforms (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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))

Powered by Google App Engine
This is Rietveld 408576698