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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontDataCache.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/platform/fonts/FontDataCache.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/FontDataCache.cpp b/third_party/WebKit/Source/platform/fonts/FontDataCache.cpp
index e11f80c575764833707c7b014646423d3c2f1ac4..06f615c70b7a03034c84925e1c6af6f97b2ed4c4 100644
--- a/third_party/WebKit/Source/platform/fonts/FontDataCache.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontDataCache.cpp
@@ -78,7 +78,7 @@ PassRefPtr<SimpleFontData> FontDataCache::get(
if (!result.get()->value.second) {
ASSERT(m_inactiveFontData.contains(result.get()->value.first));
- m_inactiveFontData.remove(result.get()->value.first);
+ m_inactiveFontData.erase(result.get()->value.first);
}
if (shouldRetain == Retain) {
@@ -157,7 +157,7 @@ bool FontDataCache::purgeLeastRecentlyUsed(int count) {
m_inactiveFontData.clear();
} else {
for (int i = 0; i < count; ++i)
- m_inactiveFontData.remove(m_inactiveFontData.begin());
+ m_inactiveFontData.erase(m_inactiveFontData.begin());
}
bool didWork = fontDataToDelete.size();
« no previous file with comments | « third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp ('k') | third_party/WebKit/Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698