Bug 1119423 - Fix reversed test of aMatchData->mStyle in gfxFontFamily::FindFontForChar. r=jdaggett

This commit is contained in:
Jonathan Kew 2015-01-09 11:57:56 +00:00
parent 91b4714487
commit f100424d94

View File

@ -1461,10 +1461,10 @@ gfxFontFamily::FindFontForChar(GlobalFontMatch *aMatchData)
} }
bool needsBold; bool needsBold;
gfxFontStyle normal; gfxFontEntry *fe =
gfxFontEntry *fe = FindFontForStyle( FindFontForStyle(aMatchData->mStyle ? *aMatchData->mStyle
(aMatchData->mStyle == nullptr) ? *aMatchData->mStyle : normal, : gfxFontStyle(),
needsBold); needsBold);
if (fe && !fe->SkipDuringSystemFallback()) { if (fe && !fe->SkipDuringSystemFallback()) {
int32_t rank = 0; int32_t rank = 0;