зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1493743 - Make AddFamilyToFontList return safely if passed a null font-family. r=lsalzman
This commit is contained in:
Родитель
68b0ccbab3
Коммит
6f427d1a33
|
@ -1884,7 +1884,10 @@ void
|
|||
gfxFontGroup::AddFamilyToFontList(gfxFontFamily* aFamily,
|
||||
FontFamilyType aGeneric)
|
||||
{
|
||||
NS_ASSERTION(aFamily, "trying to add a null font family to fontlist");
|
||||
if (!aFamily) {
|
||||
MOZ_ASSERT_UNREACHABLE("don't try to add a null font family!");
|
||||
return;
|
||||
}
|
||||
AutoTArray<gfxFontEntry*,4> fontEntryList;
|
||||
aFamily->FindAllFontsForStyle(mStyle, fontEntryList);
|
||||
// add these to the fontlist
|
||||
|
|
Загрузка…
Ссылка в новой задаче