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

Unified Diff: third_party/WebKit/Source/core/css/MediaQueryMatcher.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/css/MediaQueryMatcher.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp b/third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp
index 70b49fedd843b6332dc765796acbbcfa0ef473f1..002106cbf9aa9046fbecbf535c658d95074ef058 100644
--- a/third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp
+++ b/third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp
@@ -88,7 +88,7 @@ void MediaQueryMatcher::addMediaQueryList(MediaQueryList* query) {
void MediaQueryMatcher::removeMediaQueryList(MediaQueryList* query) {
if (!m_document)
return;
- m_mediaLists.remove(query);
+ m_mediaLists.erase(query);
}
void MediaQueryMatcher::addViewportListener(MediaQueryListListener* listener) {
@@ -101,7 +101,7 @@ void MediaQueryMatcher::removeViewportListener(
MediaQueryListListener* listener) {
if (!m_document)
return;
- m_viewportListeners.remove(listener);
+ m_viewportListeners.erase(listener);
}
void MediaQueryMatcher::mediaFeaturesChanged() {
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryList.cpp ('k') | third_party/WebKit/Source/core/dom/DocumentOrderedList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698