Bug 1464904 - When font-variations support is preffed off, do not set up variation ranges in the gfxFontEntry for a system font, so that font selection will rely only on the static properties of the faces. r=lsalzman

This commit is contained in:
Jonathan Kew 2018-05-29 20:24:28 +01:00
Родитель 38001752df
Коммит 77decadbe2
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -1016,6 +1016,7 @@ void
gfxFontEntry::SetupVariationRanges()
{
if (!gfxPlatform::GetPlatform()->HasVariationFontSupport() ||
!StaticPrefs::layout_css_font_variations_enabled() ||
!HasVariations() || IsUserFont()) {
return;
}