diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-05-09 17:17:40 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-05-09 17:17:40 +0200 |
commit | 361748956bfcd31ca0edb5e2c845fb8c043945ba (patch) | |
tree | 5224283a94e2632de4dccad21b30db26866983ff /gfx/thebes/gfxPlatformFontList.cpp | |
parent | 149b09027c3948bcea24a082615ac63e90d53ddb (diff) | |
download | UXP-361748956bfcd31ca0edb5e2c845fb8c043945ba.tar UXP-361748956bfcd31ca0edb5e2c845fb8c043945ba.tar.gz UXP-361748956bfcd31ca0edb5e2c845fb8c043945ba.tar.lz UXP-361748956bfcd31ca0edb5e2c845fb8c043945ba.tar.xz UXP-361748956bfcd31ca0edb5e2c845fb8c043945ba.zip |
Fix build bustage
Fix nsAtom->nsIAtom and FindAndAddFamilies()
Diffstat (limited to 'gfx/thebes/gfxPlatformFontList.cpp')
-rw-r--r-- | gfx/thebes/gfxPlatformFontList.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gfx/thebes/gfxPlatformFontList.cpp b/gfx/thebes/gfxPlatformFontList.cpp index 06da75ee4..e12f4e197 100644 --- a/gfx/thebes/gfxPlatformFontList.cpp +++ b/gfx/thebes/gfxPlatformFontList.cpp @@ -901,7 +901,7 @@ gfxPlatformFontList::ResolveEmojiFontNames( void gfxPlatformFontList::GetFontFamiliesFromGenericFamilies( nsTArray<nsString>& aGenericNameFamilies, - nsAtom* aLangGroup, + nsIAtom* aLangGroup, nsTArray<RefPtr<gfxFontFamily>>* aGenericFamilies) { // lookup and add platform fonts uniquely @@ -910,8 +910,7 @@ gfxPlatformFontList::GetFontFamiliesFromGenericFamilies( style.language = aLangGroup; style.systemFont = false; AutoTArray<gfxFontFamily*,10> families; - FindAndAddFamilies(genericFamily, &families, FindFamiliesFlags(0), - &style); + FindAndAddFamilies(genericFamily, &families, &style, 1.0); for (gfxFontFamily* f : families) { if (!aGenericFamilies->Contains(f)) { aGenericFamilies->AppendElement(f); |