| Index: Source/core/css/CSSFontSelector.cpp
|
| diff --git a/Source/core/css/CSSFontSelector.cpp b/Source/core/css/CSSFontSelector.cpp
|
| index 76f5734cd3ddb15673a2eca3e5d25e809ef547e6..38cdcb53efaf2792d85d0f12fad2e85ff5d5241c 100644
|
| --- a/Source/core/css/CSSFontSelector.cpp
|
| +++ b/Source/core/css/CSSFontSelector.cpp
|
| @@ -149,6 +149,14 @@ void CSSFontSelector::willUseFontData(const FontDescription& fontDescription, co
|
| face->willUseFontData(fontDescription, character);
|
| }
|
|
|
| +bool CSSFontSelector::isPlatformFontAvailable(const FontDescription& fontDescription, const AtomicString& passedFamily)
|
| +{
|
| + AtomicString family = familyNameFromSettings(m_genericFontFamilySettings, fontDescription, passedFamily);
|
| + if (family.isEmpty())
|
| + family = passedFamily;
|
| + return FontCache::fontCache()->isPlatformFontAvailable(fontDescription, family);
|
| +}
|
| +
|
| #if !ENABLE(OILPAN)
|
| void CSSFontSelector::clearDocument()
|
| {
|
|
|