https://bugs.webkit.org/show_bug.cgi?id=138924
Reviewed by Csaba Osztrogonác.
No new tests because there is no behavior change.
* css/CSSFontFaceSource.cpp:
(WebCore::CSSFontFaceSource::getFontData):
* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::requestFont):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@176410
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-11-20 Myles C. Maxfield <mmaxfield@apple.com>
+
+ Fix the !ENABLE(SVG_FONTS) build after r176276
+ https://bugs.webkit.org/show_bug.cgi?id=138924
+
+ Reviewed by Csaba Osztrogonác.
+
+ No new tests because there is no behavior change.
+
+ * css/CSSFontFaceSource.cpp:
+ (WebCore::CSSFontFaceSource::getFontData):
+ * loader/cache/CachedResourceLoader.cpp:
+ (WebCore::CachedResourceLoader::requestFont):
+
2014-11-19 Ada Chan <adachan@apple.com>
Add a way to mute an AudioContext.
if (isLoaded()) {
if (m_font) {
// Create new FontPlatformData from our CGFontRef, point size and ATSFontRef.
- if (!m_font->ensureCustomFontData(m_hasExternalSVGFont))
+ bool hasExternalSVGFont = false;
+#if ENABLE(SVG_FONTS)
+ hasExternalSVGFont = m_hasExternalSVGFont;
+#endif
+ if (!m_font->ensureCustomFontData(hasExternalSVGFont))
return nullptr;
- fontData = m_font->getFontData(fontDescription, m_string, syntheticBold, syntheticItalic, m_hasExternalSVGFont);
+ fontData = m_font->getFontData(fontDescription, m_string, syntheticBold, syntheticItalic, hasExternalSVGFont);
} else {
#if ENABLE(SVG_FONTS)
// In-Document SVG Fonts
CachedResourceHandle<CachedFont> CachedResourceLoader::requestFont(CachedResourceRequest& request, bool isSVG)
{
+#if ENABLE(SVG_FONTS)
if (isSVG)
return downcast<CachedSVGFont>(requestResource(CachedResource::SVGFontResource, request).get());
+#else
+ UNUSED_PARAM(isSVG);
+#endif
return downcast<CachedFont>(requestResource(CachedResource::FontResource, request).get());
}