diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-21 12:12:47 +0000 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 12:50:12 +0200 |
commit | 2b99226680c7d9bb75a92f29694526f77c167803 (patch) | |
tree | d24d387cced04bd96437bab0c91637b2f27afc29 /gfx | |
parent | 2794f0c48c32a2daeb654f814ee6790aac2d0dfc (diff) | |
download | UXP-2b99226680c7d9bb75a92f29694526f77c167803.tar UXP-2b99226680c7d9bb75a92f29694526f77c167803.tar.gz UXP-2b99226680c7d9bb75a92f29694526f77c167803.tar.lz UXP-2b99226680c7d9bb75a92f29694526f77c167803.tar.xz UXP-2b99226680c7d9bb75a92f29694526f77c167803.zip |
[gfx] Put Skia-specific CTOR init behind Skia-conditional.
Diffstat (limited to 'gfx')
-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> |