| 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 f2c0c1c828fe9dc9ab2c5d56f547d9bbe20bba11..5308b349753588f1ed5be703fd22fe4ed5c41625 100644
|
| --- a/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
|
| +++ b/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
|
| @@ -73,7 +73,7 @@ bool CanvasFontCache::getFontUsingDefaultStyle(const String& fontString,
|
| RefPtr<ComputedStyle> fontStyle =
|
| ComputedStyle::clone(*m_defaultFontStyle.get());
|
| m_document->ensureStyleResolver().computeFont(fontStyle.get(), *parsedStyle);
|
| - m_fontsResolvedUsingDefaultStyle.add(fontString, fontStyle->font());
|
| + m_fontsResolvedUsingDefaultStyle.insert(fontString, fontStyle->font());
|
| resolvedFont = m_fontsResolvedUsingDefaultStyle.find(fontString)->value;
|
| return true;
|
| }
|
| @@ -99,7 +99,7 @@ MutableStylePropertySet* CanvasFontCache::parseFont(const String& fontString) {
|
| if (fontValue &&
|
| (fontValue->isInitialValue() || fontValue->isInheritedValue()))
|
| return nullptr;
|
| - m_fetchedFonts.add(fontString, parsedStyle);
|
| + m_fetchedFonts.insert(fontString, parsedStyle);
|
| m_fontLRUList.add(fontString);
|
| // Hard limit is applied here, on the fly, while the soft limit is
|
| // applied at the end of the task.
|
|
|