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

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

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs 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/dom/SelectorQuery.cpp
diff --git a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
index fdbe3523554e87835fb5cfb4141fd75a3b25cc41..a2d571bc557b0dee8b2c84670245f481c609ec6c 100644
--- a/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
+++ b/third_party/WebKit/Source/core/dom/SelectorQuery.cpp
@@ -639,7 +639,8 @@ SelectorQuery* SelectorQueryCache::add(const AtomicString& selectors,
if (m_entries.size() == maximumSelectorQueryCacheSize)
m_entries.remove(m_entries.begin());
- return m_entries.add(selectors, SelectorQuery::adopt(std::move(selectorList)))
+ return m_entries
+ .insert(selectors, SelectorQuery::adopt(std::move(selectorList)))
.storedValue->value.get();
}

Powered by Google App Engine
This is Rietveld 408576698