зеркало из https://github.com/mozilla/gecko-dev.git
b=513192; Crash [@nsAString_internal::BeginReading(nsReadingIterator<unsigned short>&)]; r=jfkthame
This commit is contained in:
Родитель
718840c3e2
Коммит
682b8978d2
|
@ -620,7 +620,11 @@ gfxWindowsPlatform::FindFontForCharProc(nsStringHashKey::KeyType aKey,
|
|||
if (!fe)
|
||||
return PL_DHASH_NEXT;
|
||||
|
||||
PRInt32 rank = 0;
|
||||
// initialize rank to 1 so that any match is better than the initial
|
||||
// value of data->mMatchRank (zero); therefore the first font that
|
||||
// passes the mCharacterMap.test() will become the mBestMatch until
|
||||
// a better entry is found
|
||||
PRInt32 rank = 1;
|
||||
|
||||
// skip over non-unicode and bitmap fonts and fonts that don't have
|
||||
// the code point we're looking for
|
||||
|
|
Загрузка…
Ссылка в новой задаче