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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontDataCache.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/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 2e1007b5706c6a32ba24daff1531b2590a7d367f..e11f80c575764833707c7b014646423d3c2f1ac4 100644
--- a/third_party/WebKit/Source/platform/fonts/FontDataCache.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontDataCache.cpp
@@ -72,7 +72,7 @@ PassRefPtr<SimpleFontData> FontDataCache::get(
// by SimpleFontData.
m_cache.set(&newValue.first->platformData(), newValue);
if (shouldRetain == DoNotRetain)
- m_inactiveFontData.add(newValue.first);
+ m_inactiveFontData.insert(newValue.first);
return newValue.first.release();
}
@@ -87,7 +87,7 @@ PassRefPtr<SimpleFontData> FontDataCache::get(
// If shouldRetain is DoNotRetain and count is 0, we want to remove the
// fontData from m_inactiveFontData (above) and re-add here to update LRU
// position.
- m_inactiveFontData.add(result.get()->value.first);
+ m_inactiveFontData.insert(result.get()->value.first);
}
return result.get()->value.first;
@@ -107,7 +107,7 @@ void FontDataCache::release(const SimpleFontData* fontData) {
ASSERT(it->value.second);
if (!--it->value.second)
- m_inactiveFontData.add(it->value.first);
+ m_inactiveFontData.insert(it->value.first);
}
void FontDataCache::markAllVerticalData() {

Powered by Google App Engine
This is Rietveld 408576698