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

Unified Diff: Source/core/rendering/RenderLayerCompositor.cpp

Issue 23874019: Web Animations CSS: Start running animations on the compositor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/RenderLayerCompositor.cpp b/Source/core/rendering/RenderLayerCompositor.cpp
index 0215204f02e0813b97bd4627c0eccb1f038a325c..bf5f9943e7cee647cbdfd04380849d6f8558fed4 100644
--- a/Source/core/rendering/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/RenderLayerCompositor.cpp
@@ -30,6 +30,7 @@
#include "CSSPropertyNames.h"
#include "HTMLNames.h"
#include "RuntimeEnabledFeatures.h"
+#include "core/animation/ActiveAnimations.h"
#include "core/dom/FullscreenElementStack.h"
#include "core/dom/NodeList.h"
#include "core/html/HTMLCanvasElement.h"
@@ -1677,7 +1678,8 @@ bool RenderLayerCompositor::requiresCompositingForAnimation(RenderObject* render
{
if (!(m_compositingTriggers & ChromeClient::AnimationTrigger))
return false;
- return renderer->animation().isRunningAcceleratableAnimationOnRenderer(renderer);
+
+ return isRunningCompositorAnimationCandidate(*renderer, inCompositingMode());
}
bool RenderLayerCompositor::requiresCompositingForTransition(RenderObject* renderer) const
@@ -1868,7 +1870,7 @@ bool RenderLayerCompositor::isRunningAcceleratedTransformAnimation(RenderObject*
{
if (!(m_compositingTriggers & ChromeClient::AnimationTrigger))
return false;
- return renderer->animation().isRunningAnimationOnRenderer(renderer, CSSPropertyWebkitTransform);
+ return isRunningAnimation(*renderer, CSSPropertyWebkitTransform);
}
// If an element has negative z-index children, those children render in front of the
« Source/core/rendering/CompositedLayerMapping.cpp ('K') | « Source/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698