Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
« no previous file with comments | « third_party/WebKit/Source/core/html/PublicURLManager.cpp ('k') | third_party/WebKit/Source/core/html/forms/FormController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698