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

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

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 years, 10 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 607e43ae0e9e1276d5fa4b587e6071c4291962a7..5579ccaa18b06f57c38e21ac1c50f5d2ca976be1 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