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

Unified Diff: third_party/WebKit/Source/core/dom/custom/V0CustomElementUpgradeCandidateMap.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (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/dom/custom/V0CustomElementUpgradeCandidateMap.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElementUpgradeCandidateMap.cpp b/third_party/WebKit/Source/core/dom/custom/V0CustomElementUpgradeCandidateMap.cpp
index 1c6f13aae45cfa2d2ee09a48ea7b074733fd0112..f4fbfee430ab7752cc3e8a36c9deb9ee63059cb3 100644
--- a/third_party/WebKit/Source/core/dom/custom/V0CustomElementUpgradeCandidateMap.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementUpgradeCandidateMap.cpp
@@ -47,14 +47,14 @@ void V0CustomElementUpgradeCandidateMap::add(
observe(element);
UpgradeCandidateMap::AddResult result =
- m_upgradeCandidates.add(element, descriptor);
+ m_upgradeCandidates.insert(element, descriptor);
DCHECK(result.isNewEntry);
UnresolvedDefinitionMap::iterator it =
m_unresolvedDefinitions.find(descriptor);
ElementSet* elements;
if (it == m_unresolvedDefinitions.end())
- elements = m_unresolvedDefinitions.add(descriptor, new ElementSet())
+ elements = m_unresolvedDefinitions.insert(descriptor, new ElementSet())
.storedValue->value.get();
else
elements = it->value.get();

Powered by Google App Engine
This is Rietveld 408576698