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

Unified Diff: third_party/WebKit/Source/core/animation/StringKeyframe.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/StringKeyframe.cpp
diff --git a/third_party/WebKit/Source/core/animation/StringKeyframe.cpp b/third_party/WebKit/Source/core/animation/StringKeyframe.cpp
index 7f6bb9ff9a12d9a22745bbcbd3278c741543413d..5a522fe77ac8a0fab0e61f70b5c931cb91ed453f 100644
--- a/third_party/WebKit/Source/core/animation/StringKeyframe.cpp
+++ b/third_party/WebKit/Source/core/animation/StringKeyframe.cpp
@@ -79,18 +79,18 @@ PropertyHandleSet StringKeyframe::properties() const {
<< "Web Animations: Encountered unexpanded shorthand CSS property ("
<< propertyReference.id() << ").";
if (propertyReference.id() == CSSPropertyVariable)
- properties.add(PropertyHandle(
+ properties.insert(PropertyHandle(
toCSSCustomPropertyDeclaration(propertyReference.value()).name()));
else
- properties.add(PropertyHandle(propertyReference.id(), false));
+ properties.insert(PropertyHandle(propertyReference.id(), false));
}
for (unsigned i = 0; i < m_presentationAttributeMap->propertyCount(); ++i)
- properties.add(
+ properties.insert(
PropertyHandle(m_presentationAttributeMap->propertyAt(i).id(), true));
for (const auto& key : m_svgAttributeMap.keys())
- properties.add(PropertyHandle(*key));
+ properties.insert(PropertyHandle(*key));
return properties;
}

Powered by Google App Engine
This is Rietveld 408576698