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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeSorter.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/CustomElementUpgradeSorter.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeSorter.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeSorter.cpp
index 93d6e26d4ebb732c1ba21c88830adeb18d122a6c..0ba4e345a66ea59afed345fc430608a3d1d156c6 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeSorter.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeSorter.cpp
@@ -26,7 +26,7 @@ static HTMLLinkElement* getLinkElementForImport(const Document& import) {
CustomElementUpgradeSorter::AddResult
CustomElementUpgradeSorter::addToParentChildMap(Node* parent, Node* child) {
- ParentChildMap::AddResult result = m_parentChildMap->add(parent, nullptr);
+ ParentChildMap::AddResult result = m_parentChildMap->insert(parent, nullptr);
if (!result.isNewEntry) {
result.storedValue->value->insert(child);
// The entry for the parent exists; so must its parents.

Powered by Google App Engine
This is Rietveld 408576698