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/ResizeObserver.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/ResizeObserver.cpp
diff --git a/third_party/WebKit/Source/core/dom/ResizeObserver.cpp b/third_party/WebKit/Source/core/dom/ResizeObserver.cpp
index fce037f0da1142f0a37fe87674b782587a922d5c..42bb40d61632e5c0bfa8bc25e2e3ae6e9f0ab552 100644
--- a/third_party/WebKit/Source/core/dom/ResizeObserver.cpp
+++ b/third_party/WebKit/Source/core/dom/ResizeObserver.cpp
@@ -47,7 +47,7 @@ void ResizeObserver::unobserve(Element* target) {
auto observation = observerMap->find(this);
if (observation != observerMap->end()) {
m_observations.erase((*observation).value);
- observerMap->remove(observation);
+ observerMap->erase(observation);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp ('k') | third_party/WebKit/Source/core/dom/SelectorQuery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698