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

Unified Diff: third_party/WebKit/Source/core/css/CSSFontFaceSource.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/css/CSSFontFaceSource.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSFontFaceSource.cpp b/third_party/WebKit/Source/core/css/CSSFontFaceSource.cpp
index 2a7384bd11b18769e8f39e0db4b5bc42fc60b849..7a49e715ff731f66bbd50cc0d5143aa8d6032cfc 100644
--- a/third_party/WebKit/Source/core/css/CSSFontFaceSource.cpp
+++ b/third_party/WebKit/Source/core/css/CSSFontFaceSource.cpp
@@ -54,7 +54,7 @@ PassRefPtr<SimpleFontData> CSSFontFaceSource::getFontData(
FontCacheKey key = fontDescription.cacheKey(FontFaceCreationParams());
RefPtr<SimpleFontData>& fontData =
- m_fontDataTable.add(key, nullptr).storedValue->value;
+ m_fontDataTable.insert(key, nullptr).storedValue->value;
if (!fontData)
fontData = createFontData(fontDescription);
// No release, because fontData is a reference to a RefPtr that is held in the

Powered by Google App Engine
This is Rietveld 408576698