зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1853262 - Remove gfx.downloadable_fonts.sanitize_omt pref r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D188314
This commit is contained in:
Родитель
6f915c0111
Коммит
e5c7fdab51
|
@ -839,18 +839,7 @@ void gfxUserFontEntry::FontDataDownloadComplete(
|
|||
// download successful, make platform font using font data
|
||||
if (NS_SUCCEEDED(aDownloadStatus) &&
|
||||
mFontDataLoadingState != LOADING_TIMED_OUT) {
|
||||
if (StaticPrefs::gfx_downloadable_fonts_sanitize_omt()) {
|
||||
LoadPlatformFontAsync(aSrcIndex, aFontData, aLength, aCallback);
|
||||
} else {
|
||||
bool loaded = LoadPlatformFontSync(aSrcIndex, aFontData, aLength);
|
||||
aFontData = nullptr;
|
||||
if (loaded) {
|
||||
IncrementGeneration();
|
||||
aCallback->FontLoadComplete();
|
||||
} else {
|
||||
FontLoadFailed(aCallback);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -5978,12 +5978,6 @@
|
|||
value: false
|
||||
mirror: always
|
||||
|
||||
# Whether font sanitization is performed on the main thread or not.
|
||||
- name: gfx.downloadable_fonts.sanitize_omt
|
||||
type: RelaxedAtomicBool
|
||||
value: true
|
||||
mirror: always
|
||||
|
||||
# Whether to validate OpenType variation tables in fonts.
|
||||
- name: gfx.downloadable_fonts.validate_variation_tables
|
||||
type: RelaxedAtomicBool
|
||||
|
|
Загрузка…
Ссылка в новой задаче