Bug 1197650 - remove duplicate validity check for newly created fonts. r=m_kato

This commit is contained in:
John Daggett 2015-08-25 09:10:17 +09:00
parent dbaa85ce62
commit 2ebd845638

View File

@ -2652,9 +2652,6 @@ gfxFontGroup::FindNonItalicFaceForChar(gfxFontFamily* aFamily, uint32_t aCh)
}
nsRefPtr<gfxFont> font = fe->FindOrMakeFont(&mStyle, needsBold);
if (!font->Valid()) {
return nullptr;
}
return font.forget();
}