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

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

Issue 2752593003: Migrate WTF::Deque::first() to ::front() (Closed)
Patch Set: one more 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/CSSFontFace.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSFontFace.cpp b/third_party/WebKit/Source/core/css/CSSFontFace.cpp
index 48c50257ba1fa9cac8d0bee78a02d14973ab8903..2443bf39cb96b786fa2efb75aad1b5808adfb334 100644
--- a/third_party/WebKit/Source/core/css/CSSFontFace.cpp
+++ b/third_party/WebKit/Source/core/css/CSSFontFace.cpp
@@ -54,7 +54,7 @@ void CSSFontFace::didBeginLoad() {
}
void CSSFontFace::fontLoaded(RemoteFontFaceSource* source) {
- if (!isValid() || source != m_sources.first())
+ if (!isValid() || source != m_sources.front())
return;
if (loadStatus() == FontFace::Loading) {
@@ -75,14 +75,14 @@ void CSSFontFace::fontLoaded(RemoteFontFaceSource* source) {
}
size_t CSSFontFace::approximateBlankCharacterCount() const {
- if (!m_sources.isEmpty() && m_sources.first()->isBlank() &&
+ if (!m_sources.isEmpty() && m_sources.front()->isBlank() &&
m_segmentedFontFace)
return m_segmentedFontFace->approximateCharacterCount();
return 0;
}
void CSSFontFace::didBecomeVisibleFallback(RemoteFontFaceSource* source) {
- if (!isValid() || source != m_sources.first())
+ if (!isValid() || source != m_sources.front())
return;
if (m_segmentedFontFace)
m_segmentedFontFace->fontFaceInvalidated();
@@ -94,7 +94,7 @@ PassRefPtr<SimpleFontData> CSSFontFace::getFontData(
return nullptr;
while (!m_sources.isEmpty()) {
- Member<CSSFontFaceSource>& source = m_sources.first();
+ Member<CSSFontFaceSource>& source = m_sources.front();
if (RefPtr<SimpleFontData> result = source->getFontData(fontDescription)) {
if (loadStatus() == FontFace::Unloaded &&
(source->isLoading() || source->isLoaded()))
@@ -154,7 +154,7 @@ void CSSFontFace::load(const FontDescription& fontDescription) {
ASSERT(loadStatus() == FontFace::Loading);
while (!m_sources.isEmpty()) {
- Member<CSSFontFaceSource>& source = m_sources.first();
+ Member<CSSFontFaceSource>& source = m_sources.front();
if (source->isValid()) {
if (source->isLocal()) {
if (source->isLocalFontAvailable(fontDescription)) {
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontFace.h ('k') | third_party/WebKit/Source/core/dom/ScriptRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698