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

Unified Diff: third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp

Issue 2724363002: Migrate WTF::LinkedHashSet/ListHashSet::add() to ::insert() (Closed)
Patch Set: 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/css/MediaQueryMatcher.cpp
diff --git a/third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp b/third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp
index 6edcc9bb45e5a10f72d2468ed1359a8dd5a317e6..70b49fedd843b6332dc765796acbbcfa0ef473f1 100644
--- a/third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp
+++ b/third_party/WebKit/Source/core/css/MediaQueryMatcher.cpp
@@ -82,7 +82,7 @@ MediaQueryList* MediaQueryMatcher::matchMedia(const String& query) {
void MediaQueryMatcher::addMediaQueryList(MediaQueryList* query) {
if (!m_document)
return;
- m_mediaLists.add(query);
+ m_mediaLists.insert(query);
}
void MediaQueryMatcher::removeMediaQueryList(MediaQueryList* query) {
@@ -94,7 +94,7 @@ void MediaQueryMatcher::removeMediaQueryList(MediaQueryList* query) {
void MediaQueryMatcher::addViewportListener(MediaQueryListListener* listener) {
if (!m_document)
return;
- m_viewportListeners.add(listener);
+ m_viewportListeners.insert(listener);
}
void MediaQueryMatcher::removeViewportListener(
« 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