diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-21 12:12:47 +0000 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-21 12:12:47 +0000 |
commit | 623c44226a86ecaf65143dd8d6855d58169f14c4 (patch) | |
tree | eaf087eb56c63de8a0a85e3d519a884fa230c575 | |
parent | 1e88448ddf1e700a20bdf7a61962f2a6372c58f1 (diff) | |
download | UXP-623c44226a86ecaf65143dd8d6855d58169f14c4.tar UXP-623c44226a86ecaf65143dd8d6855d58169f14c4.tar.gz UXP-623c44226a86ecaf65143dd8d6855d58169f14c4.tar.lz UXP-623c44226a86ecaf65143dd8d6855d58169f14c4.tar.xz UXP-623c44226a86ecaf65143dd8d6855d58169f14c4.zip |
[gfx] Put Skia-specific CTOR init behind Skia-conditional.
-rw-r--r-- | gfx/2d/ScaledFontDWrite.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<Path> |