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

Unified Diff: third_party/WebKit/Source/core/css/FontFaceCache.cpp

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: Created 3 years, 11 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/FontFaceCache.cpp
diff --git a/third_party/WebKit/Source/core/css/FontFaceCache.cpp b/third_party/WebKit/Source/core/css/FontFaceCache.cpp
index 4cbd8c54d4e48bc4b2e8629edf5f810dd10e2487..0972d699e9cd42deaf38e1cec5f1e0faa32a14f5 100644
--- a/third_party/WebKit/Source/core/css/FontFaceCache.cpp
+++ b/third_party/WebKit/Source/core/css/FontFaceCache.cpp
@@ -72,7 +72,7 @@ void FontFaceCache::addFontFace(CSSFontSelector* cssFontSelector,
if (cssConnected)
m_cssConnectedFontFaces.add(fontFace);
- m_fonts.remove(fontFace->family());
+ m_fonts.erase(fontFace->family());
incrementVersion();
}
@@ -103,7 +103,7 @@ void FontFaceCache::removeFontFace(FontFace* fontFace, bool cssConnected) {
if (familyFontFaces->isEmpty())
m_fontFaces.remove(fontFacesIter);
}
- m_fonts.remove(fontFace->family());
+ m_fonts.erase(fontFace->family());
if (cssConnected)
m_cssConnectedFontFaces.remove(fontFace);

Powered by Google App Engine
This is Rietveld 408576698