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

Unified Diff: third_party/WebKit/Source/core/animation/AnimationTimeline.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: Created 3 years, 11 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
Index: third_party/WebKit/Source/core/animation/AnimationTimeline.cpp
diff --git a/third_party/WebKit/Source/core/animation/AnimationTimeline.cpp b/third_party/WebKit/Source/core/animation/AnimationTimeline.cpp
index f7fb988dceb4f836ad5050dbf412f95d9506a387..3fbcae6204ee5fcaf306b3befd1dd5c34268bb61 100644
--- a/third_party/WebKit/Source/core/animation/AnimationTimeline.cpp
+++ b/third_party/WebKit/Source/core/animation/AnimationTimeline.cpp
@@ -89,7 +89,7 @@ bool AnimationTimeline::isActive() {
void AnimationTimeline::animationAttached(Animation& animation) {
DCHECK_EQ(animation.timeline(), this);
DCHECK(!m_animations.contains(&animation));
- m_animations.add(&animation);
+ m_animations.insert(&animation);
}
Animation* AnimationTimeline::play(AnimationEffectReadOnly* child) {
@@ -281,7 +281,7 @@ void AnimationTimeline::clearOutdatedAnimation(Animation* animation) {
void AnimationTimeline::setOutdatedAnimation(Animation* animation) {
DCHECK(animation->outdated());
m_outdatedAnimationCount++;
- m_animationsNeedingUpdate.add(animation);
+ m_animationsNeedingUpdate.insert(animation);
if (isActive() && !m_document->page()->animator().isServicingAnimations())
m_timing->serviceOnNextFrame();
}

Powered by Google App Engine
This is Rietveld 408576698