summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-05-09 17:17:40 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-05-09 17:17:40 +0200
commitb662228e627c7ffaf2dd173489e446cd6e1c0e27 (patch)
tree5224283a94e2632de4dccad21b30db26866983ff
parent093a53fe5f0c6db6e0569fe7fb92dabe3273e9cb (diff)
downloadaura-central-b662228e627c7ffaf2dd173489e446cd6e1c0e27.tar.gz
Fix build bustage
Fix nsAtom->nsIAtom and FindAndAddFamilies()
-rw-r--r--gfx/thebes/gfxPlatformFontList.cpp5
-rw-r--r--gfx/thebes/gfxPlatformFontList.h2
2 files changed, 3 insertions, 4 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);
diff --git a/gfx/thebes/gfxPlatformFontList.h b/gfx/thebes/gfxPlatformFontList.h
index c3795a072..d77c12059 100644
--- a/gfx/thebes/gfxPlatformFontList.h
+++ b/gfx/thebes/gfxPlatformFontList.h
@@ -386,7 +386,7 @@ protected:
void
GetFontFamiliesFromGenericFamilies(
nsTArray<nsString>& aGenericFamilies,
- nsAtom* aLangGroup,
+ nsIAtom* aLangGroup,
nsTArray<RefPtr<gfxFontFamily>>* aFontFamilies);
virtual nsresult InitFontListForPlatform() = 0;