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

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

Issue 2759703002: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: rebase, fix one platform-specific reference Created 3 years, 9 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/CustomElementRegistry.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp
index 1e87c645bf041c94a59c19b27e669396c458161f..c853151b7d5bbb8cd6b88a170fc626c2ea5f9061 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementRegistry.cpp
@@ -199,7 +199,7 @@ CustomElementDefinition* CustomElementRegistry::define(
const auto& entry = m_whenDefinedPromiseMap.find(name);
if (entry != m_whenDefinedPromiseMap.end()) {
entry->value->resolve();
- m_whenDefinedPromiseMap.remove(entry);
+ m_whenDefinedPromiseMap.erase(entry);
}
return definition;
}
@@ -302,7 +302,7 @@ void CustomElementRegistry::collectCandidates(
sorter.add(element);
}
- m_upgradeCandidates->remove(it);
+ m_upgradeCandidates->erase(it);
Document* document = m_owner->document();
if (!document)

Powered by Google App Engine
This is Rietveld 408576698