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

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

Issue 1773633003: [DO NOT COMMIT] Trace events for layout-based First Meaningful Paint detection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/CSSSegmentedFontFace.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSSegmentedFontFace.cpp b/third_party/WebKit/Source/core/css/CSSSegmentedFontFace.cpp
index b542e535169b0c263c4105f8a3c3defd29327e48..56a59ef24e4a8ed23a3914172d06f1f0e82c820f 100644
--- a/third_party/WebKit/Source/core/css/CSSSegmentedFontFace.cpp
+++ b/third_party/WebKit/Source/core/css/CSSSegmentedFontFace.cpp
@@ -133,12 +133,10 @@ PassRefPtr<FontData> CSSSegmentedFontFace::getFontData(const FontDescription& fo
return nullptr;
}
-void CSSSegmentedFontFace::willUseFontData(const FontDescription& fontDescription, UChar32 character)
+void CSSSegmentedFontFace::willUseFontData(const FontDescription& fontDescription, const String& text)
{
for (FontFaceList::reverse_iterator it = m_fontFaces.rbegin(); it != m_fontFaces.rend(); ++it) {
- if ((*it)->loadStatus() != FontFace::Unloaded)
- break;
- if ((*it)->cssFontFace()->maybeScheduleFontLoad(fontDescription, character))
+ if ((*it)->willUseFontData(fontDescription, text))
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698