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) |