Changeset 195523 in webkit for trunk/Source/WebCore/css/CSSFontFaceSource.cpp
- Timestamp:
- Jan 24, 2016, 9:23:49 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSFontFaceSource.cpp
r194923 r195523 58 58 , m_font(font) 59 59 , m_face(0) 60 #if ENABLE(SVG_FONTS)61 , m_hasExternalSVGFont(false)62 #endif63 60 { 64 61 if (m_font) … … 120 117 if (!m_font || m_font->isLoaded()) { 121 118 if (m_font) { 122 bool hasExternalSVGFont = false; 123 #if ENABLE(SVG_FONTS) 124 hasExternalSVGFont = m_hasExternalSVGFont; 125 #endif 126 if (!m_font->ensureCustomFontData(hasExternalSVGFont, m_string)) 119 if (!m_font->ensureCustomFontData(m_string)) 127 120 return nullptr; 128 121 129 font = m_font->createFont(fontDescription, m_string, syntheticBold, syntheticItalic, hasExternalSVGFont,fontFaceFeatures, fontFaceVariantSettings);122 font = m_font->createFont(fontDescription, m_string, syntheticBold, syntheticItalic, fontFaceFeatures, fontFaceVariantSettings); 130 123 } else { 131 124 #if ENABLE(SVG_FONTS) … … 165 158 } 166 159 160 #if ENABLE(SVG_FONTS) 161 bool CSSFontFaceSource::isSVGFontFaceSource() const 162 { 163 return m_svgFontFaceElement || is<CachedSVGFont>(m_font.get()); 164 } 165 #endif 166 167 167 #if ENABLE(FONT_LOAD_EVENTS) 168 168 bool CSSFontFaceSource::isDecodeError() const
Note:
See TracChangeset
for help on using the changeset viewer.