Bug 1815679 - Account for mRangeFlags in the userfont cache key. r=emilio

This is actually a bug that pre-dates the regression here, but I haven't seen a report
of it or a specific test failure that results. However, the new WPT reftests I'm
intending to land for the slant issue do exhibit a failure until this is fixed,
so let's go ahead and do it here.

Differential Revision: https://phabricator.services.mozilla.com/D169334
This commit is contained in:
Jonathan Kew 2023-02-10 09:11:01 +00:00
Родитель 231b3e98e0
Коммит 6c2cb4ec55
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1160,6 +1160,7 @@ bool gfxUserFontSet::UserFontCache::Entry::KeyEquals(
if (mFontEntry->SlantStyle() != fe->SlantStyle() ||
mFontEntry->Weight() != fe->Weight() ||
mFontEntry->Stretch() != fe->Stretch() ||
mFontEntry->mRangeFlags != fe->mRangeFlags ||
mFontEntry->mFeatureSettings != fe->mFeatureSettings ||
mFontEntry->mVariationSettings != fe->mVariationSettings ||
mFontEntry->mLanguageOverride != fe->mLanguageOverride ||

Просмотреть файл

@ -436,7 +436,7 @@ class gfxUserFontSet {
aKey->mFontEntry->Weight().AsScalar(),
aKey->mFontEntry->SlantStyle().AsScalar(),
aKey->mFontEntry->Stretch().AsScalar(),
aKey->mFontEntry->mLanguageOverride);
aKey->mFontEntry->mRangeFlags, aKey->mFontEntry->mLanguageOverride);
}
enum { ALLOW_MEMMOVE = false };