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

Unified Diff: Source/core/animation/AnimationStack.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/animation/AnimationStack.cpp
diff --git a/Source/core/animation/AnimationStack.cpp b/Source/core/animation/AnimationStack.cpp
index c48e914f59c4a7c12a73feeb32449974d0c4cacc..09bceb2d9da9620bb43f25567daace0cd444f5bd 100644
--- a/Source/core/animation/AnimationStack.cpp
+++ b/Source/core/animation/AnimationStack.cpp
@@ -47,6 +47,14 @@ void copyToCompositableValueMap(const AnimationEffect::CompositableValueMap* sou
} // namespace
+bool AnimationStack::affects(CSSPropertyID property) const
+{
+ for (size_t i = 0; i < m_activeAnimations.size(); ++i)
Steve Block 2013/11/18 05:03:03 Needs braces
dstockwell 2013/11/18 05:30:34 Done.
+ if (m_activeAnimations[i]->affects(property))
+ return true;
+ return false;
+}
+
AnimationEffect::CompositableValueMap AnimationStack::compositableValues(const AnimationStack* animationStack, const Vector<InertAnimation*>* newAnimations, const HashSet<const Player*>* cancelledPlayers, Animation::Priority priority)
{
AnimationEffect::CompositableValueMap result;

Powered by Google App Engine
This is Rietveld 408576698