summaryrefslogtreecommitdiff
path: root/gfx/2d
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-02-21 12:12:47 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-02-21 12:12:47 +0000
commit623c44226a86ecaf65143dd8d6855d58169f14c4 (patch)
treeeaf087eb56c63de8a0a85e3d519a884fa230c575 /gfx/2d
parent1e88448ddf1e700a20bdf7a61962f2a6372c58f1 (diff)
downloaduxp-623c44226a86ecaf65143dd8d6855d58169f14c4.tar.gz
[gfx] Put Skia-specific CTOR init behind Skia-conditional.
Diffstat (limited to 'gfx/2d')
-rw-r--r--gfx/2d/ScaledFontDWrite.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gfx/2d/ScaledFontDWrite.cpp b/gfx/2d/ScaledFontDWrite.cpp
index dc8e586f56..cf173f8497 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<Path>