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

Unified Diff: third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.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/IdTargetObserverRegistry.cpp
diff --git a/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp b/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
index 8ab4f5fb6144745ae7809524cd76ec93db10e5fb..dbcdfd9b07694cccc27ece60f74bb71ce638f09f 100644
--- a/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
+++ b/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
@@ -43,7 +43,7 @@ void IdTargetObserverRegistry::addObserver(const AtomicString& id,
if (id.isEmpty())
return;
- IdToObserverSetMap::AddResult result = m_registry.add(id.impl(), nullptr);
+ IdToObserverSetMap::AddResult result = m_registry.insert(id.impl(), nullptr);
if (result.isNewEntry)
result.storedValue->value = new ObserverSet();
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementIntersectionObserverData.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698