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

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

Issue 425903003: Use HeapHashCountedSet for AnimationPlayerCountedSet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/core/animation/ActiveAnimations.cpp ('k') | Source/core/animation/AnimationPlayerTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/Animation.cpp
diff --git a/Source/core/animation/Animation.cpp b/Source/core/animation/Animation.cpp
index c5c6b45391418be260e504cfd15ad5707a615934..94f7217c6e66aa4989195e08f204e8084fd4edb4 100644
--- a/Source/core/animation/Animation.cpp
+++ b/Source/core/animation/Animation.cpp
@@ -112,7 +112,7 @@ Animation::~Animation()
void Animation::attach(AnimationPlayer* player)
{
if (m_target) {
- m_target->ensureActiveAnimations().addPlayer(player);
+ m_target->ensureActiveAnimations().players().add(player);
m_target->setNeedsAnimationStyleRecalc();
}
AnimationNode::attach(player);
@@ -121,7 +121,7 @@ void Animation::attach(AnimationPlayer* player)
void Animation::detach()
{
if (m_target)
- m_target->activeAnimations()->removePlayer(player());
+ m_target->activeAnimations()->players().remove(player());
if (m_sampledEffect)
clearEffects();
AnimationNode::detach();
« no previous file with comments | « Source/core/animation/ActiveAnimations.cpp ('k') | Source/core/animation/AnimationPlayerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698