mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Fix build bustage
Fix nsAtom->nsIAtom and FindAndAddFamilies()
This commit is contained in:
parent
c0de3e4c0b
commit
826e420144
2 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -386,7 +386,7 @@ protected:
|
|||
void
|
||||
GetFontFamiliesFromGenericFamilies(
|
||||
nsTArray<nsString>& aGenericFamilies,
|
||||
nsAtom* aLangGroup,
|
||||
nsIAtom* aLangGroup,
|
||||
nsTArray<RefPtr<gfxFontFamily>>* aFontFamilies);
|
||||
|
||||
virtual nsresult InitFontListForPlatform() = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue