Bug 1351262 - Serialize unquoted font-family without quote r=manishearth

MozReview-Commit-ID: LY554sZxZyb

--HG--
extra : rebase_source : acfaafcee91db6775e033beff6fd94487aefa0a6
This commit is contained in:
Nazım Can Altınova 2017-03-30 21:15:57 +03:00
Родитель 0190f40378
Коммит e31083ac08
2 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -817,12 +817,14 @@ Gecko_FontFamilyList_Clear(FontFamilyList* aList) {
}
void
Gecko_FontFamilyList_AppendNamed(FontFamilyList* aList, nsIAtom* aName)
Gecko_FontFamilyList_AppendNamed(FontFamilyList* aList, nsIAtom* aName, bool aQuoted)
{
// Servo doesn't record whether the name was quoted or unquoted, so just
// assume unquoted for now.
FontFamilyName family;
aName->ToString(family.mName);
if (aQuoted) {
family.mType = eFamily_named_quoted;
}
aList->Append(family);
}

Просмотреть файл

@ -224,7 +224,7 @@ bool Gecko_AtomEqualsUTF8IgnoreCase(nsIAtom* aAtom, const char* aString, uint32_
// Font style
void Gecko_FontFamilyList_Clear(FontFamilyList* aList);
void Gecko_FontFamilyList_AppendNamed(FontFamilyList* aList, nsIAtom* aName);
void Gecko_FontFamilyList_AppendNamed(FontFamilyList* aList, nsIAtom* aName, bool aQuoted);
void Gecko_FontFamilyList_AppendGeneric(FontFamilyList* list, FontFamilyType familyType);
void Gecko_CopyFontFamilyFrom(nsFont* dst, const nsFont* src);