зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1351262 - Serialize unquoted font-family without quote r=manishearth
MozReview-Commit-ID: LY554sZxZyb --HG-- extra : rebase_source : acfaafcee91db6775e033beff6fd94487aefa0a6
This commit is contained in:
Родитель
0190f40378
Коммит
e31083ac08
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче