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

Unified Diff: Source/platform/fonts/Font.cpp

Issue 248473005: Make CSSFontFace::willUseFontData() load fonts with unicode-range (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/platform/fonts/Font.cpp
diff --git a/Source/platform/fonts/Font.cpp b/Source/platform/fonts/Font.cpp
index 88c4f71a6def11586e82b315304c61657a0e71b9..86dbf78f3702005c3fbaf49e1749356a6747bba6 100644
--- a/Source/platform/fonts/Font.cpp
+++ b/Source/platform/fonts/Font.cpp
@@ -245,11 +245,11 @@ CodePath Font::codePath(const TextRun& run) const
return Character::characterRangeCodePath(run.characters16(), run.length());
}
-void Font::willUseFontData() const
+void Font::willUseFontData(const String& text) const
{
const FontFamily& family = fontDescription().family();
if (m_fontFallbackList && m_fontFallbackList->fontSelector() && !family.familyIsEmpty())
- m_fontFallbackList->fontSelector()->willUseFontData(fontDescription(), family.family());
+ m_fontFallbackList->fontSelector()->willUseFontData(fontDescription(), family.family(), text);
}
static inline bool isInRange(UChar32 character, UChar32 lowerBound, UChar32 upperBound)

Powered by Google App Engine
This is Rietveld 408576698