mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1119423 - Fix reversed test of aMatchData->mStyle in gfxFontFamily::FindFontForChar. r=jdaggett
This commit is contained in:
parent
91b4714487
commit
f100424d94
@ -1461,10 +1461,10 @@ gfxFontFamily::FindFontForChar(GlobalFontMatch *aMatchData)
|
||||
}
|
||||
|
||||
bool needsBold;
|
||||
gfxFontStyle normal;
|
||||
gfxFontEntry *fe = FindFontForStyle(
|
||||
(aMatchData->mStyle == nullptr) ? *aMatchData->mStyle : normal,
|
||||
needsBold);
|
||||
gfxFontEntry *fe =
|
||||
FindFontForStyle(aMatchData->mStyle ? *aMatchData->mStyle
|
||||
: gfxFontStyle(),
|
||||
needsBold);
|
||||
|
||||
if (fe && !fe->SkipDuringSystemFallback()) {
|
||||
int32_t rank = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user