| Index: third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
|
| index 664b9dc9f0b3f6b448b6ada1edc8cec10440ae43..f2c0c1c828fe9dc9ab2c5d56f547d9bbe20bba11 100644
|
| --- a/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
|
| +++ b/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
|
| @@ -106,8 +106,8 @@ MutableStylePropertySet* CanvasFontCache::parseFont(const String& fontString) {
|
| if (m_fetchedFonts.size() > hardMaxFonts()) {
|
| ASSERT(m_fetchedFonts.size() == hardMaxFonts() + 1);
|
| ASSERT(m_fontLRUList.size() == hardMaxFonts() + 1);
|
| - m_fetchedFonts.remove(m_fontLRUList.first());
|
| - m_fontsResolvedUsingDefaultStyle.remove(m_fontLRUList.first());
|
| + m_fetchedFonts.erase(m_fontLRUList.first());
|
| + m_fontsResolvedUsingDefaultStyle.erase(m_fontLRUList.first());
|
| m_fontLRUList.removeFirst();
|
| }
|
| }
|
| @@ -120,8 +120,8 @@ void CanvasFontCache::didProcessTask() {
|
| ASSERT(m_pruningScheduled);
|
| ASSERT(m_mainCachePurgePreventer);
|
| while (m_fetchedFonts.size() > maxFonts()) {
|
| - m_fetchedFonts.remove(m_fontLRUList.first());
|
| - m_fontsResolvedUsingDefaultStyle.remove(m_fontLRUList.first());
|
| + m_fetchedFonts.erase(m_fontLRUList.first());
|
| + m_fontsResolvedUsingDefaultStyle.erase(m_fontLRUList.first());
|
| m_fontLRUList.removeFirst();
|
| }
|
| m_mainCachePurgePreventer.reset();
|
|
|