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

Unified Diff: third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.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/IdTargetObserverRegistry.cpp
diff --git a/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp b/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
index 57af0c7a1c491d5411698978bf2d9c87269aa05e..3bf1b0bb2ed5f43405605a877cc37f166c9560b9 100644
--- a/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
+++ b/third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp
@@ -60,7 +60,7 @@ void IdTargetObserverRegistry::removeObserver(const AtomicString& id,
ObserverSet* set = iter->value.get();
set->erase(observer);
if (set->isEmpty() && set != m_notifyingObserversInSet)
- m_registry.remove(iter);
+ m_registry.erase(iter);
}
void IdTargetObserverRegistry::notifyObserversInternal(const AtomicString& id) {
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp ('k') | third_party/WebKit/Source/core/dom/ResizeObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698