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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasFontCache.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/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 664b9dc9f0b3f6b448b6ada1edc8cec10440ae43..f2c0c1c828fe9dc9ab2c5d56f547d9bbe20bba11 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
@@ -106,8 +106,8 @@ MutableStylePropertySet* CanvasFontCache::parseFont(const String& fontString) {
if (m_fetchedFonts.size() > hardMaxFonts()) {
ASSERT(m_fetchedFonts.size() == hardMaxFonts() + 1);
ASSERT(m_fontLRUList.size() == hardMaxFonts() + 1);
- m_fetchedFonts.remove(m_fontLRUList.first());
- m_fontsResolvedUsingDefaultStyle.remove(m_fontLRUList.first());
+ m_fetchedFonts.erase(m_fontLRUList.first());
+ m_fontsResolvedUsingDefaultStyle.erase(m_fontLRUList.first());
m_fontLRUList.removeFirst();
}
}
@@ -120,8 +120,8 @@ void CanvasFontCache::didProcessTask() {
ASSERT(m_pruningScheduled);
ASSERT(m_mainCachePurgePreventer);
while (m_fetchedFonts.size() > maxFonts()) {
- m_fetchedFonts.remove(m_fontLRUList.first());
- m_fontsResolvedUsingDefaultStyle.remove(m_fontLRUList.first());
+ m_fetchedFonts.erase(m_fontLRUList.first());
+ m_fontsResolvedUsingDefaultStyle.erase(m_fontLRUList.first());
m_fontLRUList.removeFirst();
}
m_mainCachePurgePreventer.reset();
« 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