From 2ebd845638dfe36139a6ef99e7929a21a46d7d7a Mon Sep 17 00:00:00 2001 From: John Daggett Date: Tue, 25 Aug 2015 09:10:17 +0900 Subject: [PATCH] Bug 1197650 - remove duplicate validity check for newly created fonts. r=m_kato --- gfx/thebes/gfxTextRun.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/gfx/thebes/gfxTextRun.cpp b/gfx/thebes/gfxTextRun.cpp index 5fdadc3a664c..b168b1ff7ff1 100644 --- a/gfx/thebes/gfxTextRun.cpp +++ b/gfx/thebes/gfxTextRun.cpp @@ -2652,9 +2652,6 @@ gfxFontGroup::FindNonItalicFaceForChar(gfxFontFamily* aFamily, uint32_t aCh) } nsRefPtr font = fe->FindOrMakeFont(&mStyle, needsBold); - if (!font->Valid()) { - return nullptr; - } return font.forget(); }