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 d88d155887b821406935fd47b049296c17f2f8bb..2e1007b5706c6a32ba24daff1531b2590a7d367f 100644 |
--- a/third_party/WebKit/Source/platform/fonts/FontDataCache.cpp |
+++ b/third_party/WebKit/Source/platform/fonts/FontDataCache.cpp |
@@ -146,7 +146,7 @@ bool FontDataCache::purgeLeastRecentlyUsed(int count) { |
ListHashSet<RefPtr<SimpleFontData>>::iterator it = m_inactiveFontData.begin(); |
for (int i = 0; i < count && it != end; ++it, ++i) { |
RefPtr<SimpleFontData>& fontData = *it.get(); |
- m_cache.remove(&(fontData->platformData())); |
+ m_cache.erase(&(fontData->platformData())); |
// We should not delete SimpleFontData here because deletion can modify |
// m_inactiveFontData. See http://trac.webkit.org/changeset/44011 |
fontDataToDelete.push_back(fontData); |