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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h

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/css/CSSAnimationUpdate.h
diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h b/third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h
index 64dfd2adcf0e50e0069a31562da0ae7f9be15d44..613f2e61582979cc6b1197bb97ce15cbadf5f02a 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimationUpdate.h
@@ -144,7 +144,7 @@ class CSSAnimationUpdate final {
}
void cancelAnimation(size_t index, const Animation& animation) {
m_cancelledAnimationIndices.push_back(index);
- m_suppressedAnimations.add(&animation);
+ m_suppressedAnimations.insert(&animation);
}
void toggleAnimationIndexPaused(size_t index) {
m_animationIndicesWithPauseToggled.push_back(index);
@@ -156,7 +156,7 @@ class CSSAnimationUpdate final {
StyleRuleKeyframes* styleRule) {
m_animationsWithUpdates.push_back(UpdatedCSSAnimation(
index, animation, effect, specifiedTiming, styleRule));
- m_suppressedAnimations.add(animation);
+ m_suppressedAnimations.insert(animation);
}
void updateCompositorKeyframes(Animation* animation) {
m_updatedCompositorKeyframes.push_back(animation);
@@ -180,8 +180,8 @@ class CSSAnimationUpdate final {
bool isCancelledTransition(CSSPropertyID id) const {
return m_cancelledTransitions.contains(id);
}
- void cancelTransition(CSSPropertyID id) { m_cancelledTransitions.add(id); }
- void finishTransition(CSSPropertyID id) { m_finishedTransitions.add(id); }
+ void cancelTransition(CSSPropertyID id) { m_cancelledTransitions.insert(id); }
+ void finishTransition(CSSPropertyID id) { m_finishedTransitions.insert(id); }
const HeapVector<NewCSSAnimation>& newAnimations() const {
return m_newAnimations;

Powered by Google App Engine
This is Rietveld 408576698