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

Unified Diff: Source/core/animation/ActiveAnimations.cpp

Issue 101623002: Drop "only composite opacity animations when already in compositing mode". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Seperate window.internals and window.testRunner Created 7 years 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
« no previous file with comments | « Source/core/animation/ActiveAnimations.h ('k') | Source/core/frame/animation/AnimationController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/ActiveAnimations.cpp
diff --git a/Source/core/animation/ActiveAnimations.cpp b/Source/core/animation/ActiveAnimations.cpp
index 037e3df256d1d59999729c1eee2b80096137a766..d27161d6a103136178088de3c2d17feb2853c2c8 100644
--- a/Source/core/animation/ActiveAnimations.cpp
+++ b/Source/core/animation/ActiveAnimations.cpp
@@ -36,7 +36,7 @@
namespace WebCore {
-bool shouldCompositeForActiveAnimations(const RenderObject& renderer, bool renderViewInCompositingMode)
+bool shouldCompositeForActiveAnimations(const RenderObject& renderer)
{
ASSERT(RuntimeEnabledFeatures::webAnimationsCSSEnabled());
@@ -45,8 +45,7 @@ bool shouldCompositeForActiveAnimations(const RenderObject& renderer, bool rende
const Element* element = toElement(renderer.node());
if (const ActiveAnimations* activeAnimations = element->activeAnimations()) {
- // FIXME: remove compositing mode check once compositing is forced on all platforms
- if ((renderViewInCompositingMode && activeAnimations->hasActiveAnimations(CSSPropertyOpacity))
+ if (activeAnimations->hasActiveAnimations(CSSPropertyOpacity)
|| activeAnimations->hasActiveAnimations(CSSPropertyWebkitTransform)
|| activeAnimations->hasActiveAnimations(CSSPropertyWebkitFilter))
return true;
« no previous file with comments | « Source/core/animation/ActiveAnimations.h ('k') | Source/core/frame/animation/AnimationController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698