[FreeType] Restore conditional compilation logic for recent HarfBuzz refactoring
[WebKit-https.git] / Source / WebCore / platform / graphics / freetype / FontPlatformDataFreeType.cpp
index 645cd17..0437934 100644 (file)
@@ -296,6 +296,7 @@ RefPtr<SharedBuffer> FontPlatformData::openTypeTable(uint32_t table) const
     return SharedBuffer::create(WTFMove(data));
 }
 
+#if USE(HARFBUZZ) && !ENABLE(OPENTYPE_MATH)
 HbUniquePtr<hb_font_t> FontPlatformData::createOpenTypeMathHarfBuzzFont() const
 {
     CairoFtFaceLocker cairoFtFaceLocker(m_scaledFont.get());
@@ -309,5 +310,6 @@ HbUniquePtr<hb_font_t> FontPlatformData::createOpenTypeMathHarfBuzzFont() const
 
     return HbUniquePtr<hb_font_t>(hb_font_create(face.get()));
 }
+#endif
 
 } // namespace WebCore