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

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

Issue 2722413005: Migrate WTF::LinkedHashSet/ListHashSet::first() to ::front() (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5ba9184744b0315ca127524b2bb23c6faa981503..a79908532f2a16eecb63caf657a690da2340c12f 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.erase(m_fontLRUList.first());
- m_fontsResolvedUsingDefaultStyle.erase(m_fontLRUList.first());
+ m_fetchedFonts.erase(m_fontLRUList.front());
+ m_fontsResolvedUsingDefaultStyle.erase(m_fontLRUList.front());
m_fontLRUList.removeFirst();
}
}
@@ -120,8 +120,8 @@ void CanvasFontCache::didProcessTask() {
ASSERT(m_pruningScheduled);
ASSERT(m_mainCachePurgePreventer);
while (m_fetchedFonts.size() > maxFonts()) {
- m_fetchedFonts.erase(m_fontLRUList.first());
- m_fontsResolvedUsingDefaultStyle.erase(m_fontLRUList.first());
+ m_fetchedFonts.erase(m_fontLRUList.front());
+ m_fontsResolvedUsingDefaultStyle.erase(m_fontLRUList.front());
m_fontLRUList.removeFirst();
}
m_mainCachePurgePreventer.reset();
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698