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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.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
Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
index c224d54a4d3d7b78c7f04298d663f76c70832e5d..0933dbf8ac4cb840bdc42fa13b90ef8a1332ccda 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp
@@ -526,7 +526,7 @@ void CanvasRenderingContext2D::pruneLocalFontCache(size_t targetSize) {
return;
}
while (m_fontLRUList.size() > targetSize) {
- m_fontsResolvedUsingCurrentStyle.erase(m_fontLRUList.first());
+ m_fontsResolvedUsingCurrentStyle.erase(m_fontLRUList.front());
m_fontLRUList.removeFirst();
}
}

Powered by Google App Engine
This is Rietveld 408576698