| 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 5308b349753588f1ed5be703fd22fe4ed5c41625..5ba9184744b0315ca127524b2bb23c6faa981503 100644
|
| --- a/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
|
| +++ b/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
|
| @@ -60,7 +60,7 @@ bool CanvasFontCache::getFontUsingDefaultStyle(const String& fontString,
|
| if (i != m_fontsResolvedUsingDefaultStyle.end()) {
|
| ASSERT(m_fontLRUList.contains(fontString));
|
| m_fontLRUList.remove(fontString);
|
| - m_fontLRUList.add(fontString);
|
| + m_fontLRUList.insert(fontString);
|
| resolvedFont = i->value;
|
| return true;
|
| }
|
| @@ -85,7 +85,7 @@ MutableStylePropertySet* CanvasFontCache::parseFont(const String& fontString) {
|
| ASSERT(m_fontLRUList.contains(fontString));
|
| parsedStyle = i->value;
|
| m_fontLRUList.remove(fontString);
|
| - m_fontLRUList.add(fontString);
|
| + m_fontLRUList.insert(fontString);
|
| } else {
|
| parsedStyle = MutableStylePropertySet::create(HTMLStandardMode);
|
| CSSParser::parseValue(parsedStyle, CSSPropertyFont, fontString, true);
|
| @@ -100,7 +100,7 @@ MutableStylePropertySet* CanvasFontCache::parseFont(const String& fontString) {
|
| (fontValue->isInitialValue() || fontValue->isInheritedValue()))
|
| return nullptr;
|
| m_fetchedFonts.insert(fontString, parsedStyle);
|
| - m_fontLRUList.add(fontString);
|
| + m_fontLRUList.insert(fontString);
|
| // Hard limit is applied here, on the fly, while the soft limit is
|
| // applied at the end of the task.
|
| if (m_fetchedFonts.size() > hardMaxFonts()) {
|
|
|