| 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() {
|
|
|