mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-04 22:37:29 +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
|
void
|
||||||
gfxPlatformFontList::GetFontFamiliesFromGenericFamilies(
|
gfxPlatformFontList::GetFontFamiliesFromGenericFamilies(
|
||||||
nsTArray<nsString>& aGenericNameFamilies,
|
nsTArray<nsString>& aGenericNameFamilies,
|
||||||
nsAtom* aLangGroup,
|
nsIAtom* aLangGroup,
|
||||||
nsTArray<RefPtr<gfxFontFamily>>* aGenericFamilies)
|
nsTArray<RefPtr<gfxFontFamily>>* aGenericFamilies)
|
||||||
{
|
{
|
||||||
// lookup and add platform fonts uniquely
|
// lookup and add platform fonts uniquely
|
||||||
|
|
@ -910,8 +910,7 @@ gfxPlatformFontList::GetFontFamiliesFromGenericFamilies(
|
||||||
style.language = aLangGroup;
|
style.language = aLangGroup;
|
||||||
style.systemFont = false;
|
style.systemFont = false;
|
||||||
AutoTArray<gfxFontFamily*,10> families;
|
AutoTArray<gfxFontFamily*,10> families;
|
||||||
FindAndAddFamilies(genericFamily, &families, FindFamiliesFlags(0),
|
FindAndAddFamilies(genericFamily, &families, &style, 1.0);
|
||||||
&style);
|
|
||||||
for (gfxFontFamily* f : families) {
|
for (gfxFontFamily* f : families) {
|
||||||
if (!aGenericFamilies->Contains(f)) {
|
if (!aGenericFamilies->Contains(f)) {
|
||||||
aGenericFamilies->AppendElement(f);
|
aGenericFamilies->AppendElement(f);
|
||||||
|
|
|
||||||
|
|
@ -386,7 +386,7 @@ protected:
|
||||||
void
|
void
|
||||||
GetFontFamiliesFromGenericFamilies(
|
GetFontFamiliesFromGenericFamilies(
|
||||||
nsTArray<nsString>& aGenericFamilies,
|
nsTArray<nsString>& aGenericFamilies,
|
||||||
nsAtom* aLangGroup,
|
nsIAtom* aLangGroup,
|
||||||
nsTArray<RefPtr<gfxFontFamily>>* aFontFamilies);
|
nsTArray<RefPtr<gfxFontFamily>>* aFontFamilies);
|
||||||
|
|
||||||
virtual nsresult InitFontListForPlatform() = 0;
|
virtual nsresult InitFontListForPlatform() = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue