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

Unified Diff: Source/core/animation/ActiveAnimations.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.h ('k') | Source/core/animation/Animation.cpp » ('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 8dfddbcf86bde5c36c6f0262118290470d8c4785..586de09c0a5368685d59bb9d04f755fa34cc107a 100644
--- a/Source/core/animation/ActiveAnimations.cpp
+++ b/Source/core/animation/ActiveAnimations.cpp
@@ -44,21 +44,6 @@ ActiveAnimations::~ActiveAnimations()
#endif
}
-void ActiveAnimations::addPlayer(AnimationPlayer* player)
-{
- ++m_players.add(player, 0).storedValue->value;
-}
-
-void ActiveAnimations::removePlayer(AnimationPlayer* player)
-{
- AnimationPlayerCountedSet::iterator it = m_players.find(player);
- ASSERT(it != m_players.end());
- ASSERT(it->value > 0);
- --it->value;
- if (!it->value)
- m_players.remove(it);
-}
-
void ActiveAnimations::updateAnimationFlags(RenderStyle& style)
{
for (AnimationPlayerCountedSet::const_iterator it = m_players.begin(); it != m_players.end(); ++it) {
« no previous file with comments | « Source/core/animation/ActiveAnimations.h ('k') | Source/core/animation/Animation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698