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

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

Issue 2725063003: Migrate WTF::LinkedHashSet/ListHashSet/HashTable::remove() to ::erase() (Closed)
Patch Set: rebase 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/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 a79908532f2a16eecb63caf657a690da2340c12f..30440f3b5b9d1363323923c3c23850f2cc55ec57 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasFontCache.cpp
@@ -59,7 +59,7 @@ bool CanvasFontCache::getFontUsingDefaultStyle(const String& fontString,
m_fontsResolvedUsingDefaultStyle.find(fontString);
if (i != m_fontsResolvedUsingDefaultStyle.end()) {
ASSERT(m_fontLRUList.contains(fontString));
- m_fontLRUList.remove(fontString);
+ m_fontLRUList.erase(fontString);
m_fontLRUList.insert(fontString);
resolvedFont = i->value;
return true;
@@ -84,7 +84,7 @@ MutableStylePropertySet* CanvasFontCache::parseFont(const String& fontString) {
if (i != m_fetchedFonts.end()) {
ASSERT(m_fontLRUList.contains(fontString));
parsedStyle = i->value;
- m_fontLRUList.remove(fontString);
+ m_fontLRUList.erase(fontString);
m_fontLRUList.insert(fontString);
} else {
parsedStyle = MutableStylePropertySet::create(HTMLStandardMode);

Powered by Google App Engine
This is Rietveld 408576698