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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimations.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/css/CSSAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
index b571510bcc0e74be7834b9eb95baf9e4504729ae..e9a658216361fcadd7ce0d54aec2a015ae8643ae 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp
@@ -100,7 +100,7 @@ static StringKeyframeEffectModel* createKeyframeEffectModel(
const StylePropertySet& properties = styleKeyframe->properties();
for (unsigned j = 0; j < properties.propertyCount(); j++) {
CSSPropertyID property = properties.propertyAt(j).id();
- specifiedPropertiesForUseCounter.add(property);
+ specifiedPropertiesForUseCounter.insert(property);
if (property == CSSPropertyAnimationTimingFunction) {
const CSSValue& value = properties.propertyAt(j).value();
RefPtr<TimingFunction> timingFunction;
@@ -879,7 +879,7 @@ void CSSAnimations::calculateTransitionActiveInterpolations(
elementAnimations->cssAnimations().m_transitions;
for (CSSPropertyID id : update.cancelledTransitions()) {
DCHECK(transitionMap.contains(id));
- cancelledAnimations.add(transitionMap.get(id).animation.get());
+ cancelledAnimations.insert(transitionMap.get(id).animation.get());
}
}

Powered by Google App Engine
This is Rietveld 408576698