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

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: rebase 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
« no previous file with comments | « Source/platform/fonts/Font.h ('k') | Source/platform/fonts/FontSelector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/Font.cpp
diff --git a/Source/platform/fonts/Font.cpp b/Source/platform/fonts/Font.cpp
index 1b01d3dd1d7b24700f508152b5351068869da48d..806a5f9b8e5f6a485a5a939fa5701d66ff03e988 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(UChar32 character) 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(), character);
}
static inline bool isInRange(UChar32 character, UChar32 lowerBound, UChar32 upperBound)
« no previous file with comments | « Source/platform/fonts/Font.h ('k') | Source/platform/fonts/FontSelector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698