From 623c44226a86ecaf65143dd8d6855d58169f14c4 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 21 Feb 2020 12:12:47 +0000 Subject: [gfx] Put Skia-specific CTOR init behind Skia-conditional. --- gfx/2d/ScaledFontDWrite.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gfx/2d/ScaledFontDWrite.cpp') diff --git a/gfx/2d/ScaledFontDWrite.cpp b/gfx/2d/ScaledFontDWrite.cpp index dc8e586f5..cf173f849 100644 --- a/gfx/2d/ScaledFontDWrite.cpp +++ b/gfx/2d/ScaledFontDWrite.cpp @@ -110,10 +110,12 @@ ScaledFontDWrite::ScaledFontDWrite(IDWriteFontFace *aFontFace, Float aSize, , mUseEmbeddedBitmap(aUseEmbeddedBitmap) , mForceGDIMode(aForceGDIMode) { +#ifdef USE_SKIA mStyle = SkFontStyle(aStyle->weight, DWriteFontStretchFromStretch(aStyle->stretch), aStyle->style == NS_FONT_STYLE_NORMAL ? SkFontStyle::kUpright_Slant : SkFontStyle::kItalic_Slant); +#endif } already_AddRefed -- cgit v1.2.3