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

Unified Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 23874019: Web Animations CSS: Start running animations on the compositor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleanup isRunning* and shouldCompositeForAnimation 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/css/resolver/StyleResolver.cpp
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
index 6dfb08aa3c2c651ec64586430ac7b64ccfcab7cf..2b4ac4d070fd24da97931373d6be25142c4dab62 100644
--- a/Source/core/css/resolver/StyleResolver.cpp
+++ b/Source/core/css/resolver/StyleResolver.cpp
@@ -1271,7 +1271,7 @@ void StyleResolver::applyMatchedProperties(StyleResolverState& state, const Matc
// Unfortunately the link status is treated like an inherited property. We need to explicitly restore it.
state.style()->setInsideLink(linkStatus);
- if (RuntimeEnabledFeatures::webAnimationsCSSEnabled()
+ if (RuntimeEnabledFeatures::webAnimationsCSSEnabled() && animatingElement
&& (animatingElement->hasActiveAnimations()
|| (state.style()->transitions() && !state.style()->transitions()->isEmpty())
|| (state.style()->animations() && !state.style()->animations()->isEmpty())))

Powered by Google App Engine
This is Rietveld 408576698