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

Unified Diff: third_party/WebKit/Source/core/dom/ResizeObserver.cpp

Issue 2725063003: Migrate WTF::LinkedHashSet/ListHashSet/HashTable::remove() to ::erase() (Closed)
Patch Set: rebase 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 c60f49441e41c96006f897bfc0c9c6093631bc71..fce037f0da1142f0a37fe87674b782587a922d5c 100644
--- a/third_party/WebKit/Source/core/dom/ResizeObserver.cpp
+++ b/third_party/WebKit/Source/core/dom/ResizeObserver.cpp
@@ -46,7 +46,7 @@ void ResizeObserver::unobserve(Element* target) {
return;
auto observation = observerMap->find(this);
if (observation != observerMap->end()) {
- m_observations.remove((*observation).value);
+ m_observations.erase((*observation).value);
observerMap->remove(observation);
}
}

Powered by Google App Engine
This is Rietveld 408576698