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

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

Issue 2759703002: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: rebase, fix one platform-specific reference Created 3 years, 9 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 fa50f82d150226f76d075216571fedee60567367..d9f1ce12e55d545516236ac776599c7338f86c5f 100644
--- a/third_party/WebKit/Source/core/css/FontFaceCache.cpp
+++ b/third_party/WebKit/Source/core/css/FontFaceCache.cpp
@@ -80,7 +80,7 @@ void FontFaceCache::remove(const StyleRuleFontFace* fontFaceRule) {
StyleRuleToFontFace::iterator it = m_styleRuleToFontFace.find(fontFaceRule);
if (it != m_styleRuleToFontFace.end()) {
removeFontFace(it->value.get(), true);
- m_styleRuleToFontFace.remove(it);
+ m_styleRuleToFontFace.erase(it);
}
}
@@ -99,9 +99,9 @@ void FontFaceCache::removeFontFace(FontFace* fontFace, bool cssConnected) {
segmentedFontFace->removeFontFace(fontFace);
if (segmentedFontFace->isEmpty()) {
- familyFontFaces->remove(familyFontFacesIter);
+ familyFontFaces->erase(familyFontFacesIter);
if (familyFontFaces->isEmpty())
- m_fontFaces.remove(fontFacesIter);
+ m_fontFaces.erase(fontFacesIter);
}
m_fonts.erase(fontFace->family());
if (cssConnected)

Powered by Google App Engine
This is Rietveld 408576698