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

Unified Diff: third_party/WebKit/Source/platform/fonts/Font.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/platform/fonts/Font.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/Font.cpp b/third_party/WebKit/Source/platform/fonts/Font.cpp
index 094bfebbf39e69345ef7fd0f02338c4c10a0ff84..fcfdd472773a76be93923020df85b876c563e493 100644
--- a/third_party/WebKit/Source/platform/fonts/Font.cpp
+++ b/third_party/WebKit/Source/platform/fonts/Font.cpp
@@ -470,11 +470,11 @@ bool Font::computeCanShapeWordByWord() const
return !platformData.hasSpaceInLigaturesOrKerning(features);
};
-void Font::willUseFontData(UChar32 character) const
+void Font::willUseFontData(const String& text) const
{
const FontFamily& family = getFontDescription().family();
if (m_fontFallbackList && m_fontFallbackList->getFontSelector() && !family.familyIsEmpty())
- m_fontFallbackList->getFontSelector()->willUseFontData(getFontDescription(), family.family(), character);
+ m_fontFallbackList->getFontSelector()->willUseFontData(getFontDescription(), family.family(), text);
}
static inline GlyphData glyphDataForNonCJKCharacterWithGlyphOrientation(UChar32 character, bool isUpright, GlyphData& data, unsigned pageNumber)

Powered by Google App Engine
This is Rietveld 408576698