зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1386825 - Part 3: Remove MOZ_B2G from libpref. r=froydnj
MozReview-Commit-ID: GFLU2XF5yId
This commit is contained in:
Родитель
fe8929dc60
Коммит
d947321e29
|
@ -649,9 +649,7 @@ Preferences::IsServiceAvailable()
|
|||
bool
|
||||
Preferences::InitStaticMembers()
|
||||
{
|
||||
#ifndef MOZ_B2G
|
||||
MOZ_ASSERT(NS_IsMainThread() || mozilla::ServoStyleSet::IsInServoTraversal());
|
||||
#endif
|
||||
|
||||
if (!sShutdown && !sPreferences) {
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
|
|
@ -1426,7 +1426,7 @@ pref("javascript.options.wasm", true);
|
|||
pref("javascript.options.wasm_baselinejit", false);
|
||||
pref("javascript.options.native_regexp", true);
|
||||
pref("javascript.options.parallel_parsing", true);
|
||||
#if !defined(RELEASE_OR_BETA) && !defined(ANDROID) && !defined(MOZ_B2G) && !defined(XP_IOS)
|
||||
#if !defined(RELEASE_OR_BETA) && !defined(ANDROID) && !defined(XP_IOS)
|
||||
pref("javascript.options.asyncstack", true);
|
||||
#else
|
||||
pref("javascript.options.asyncstack", false);
|
||||
|
@ -2495,14 +2495,6 @@ pref("font.name-list.monospace.x-math", "monospace");
|
|||
// These fonts are ignored the underline offset, instead of it, the underline is lowered to bottom of its em descent.
|
||||
pref("font.blacklist.underline_offset", "FangSong,Gulim,GulimChe,MingLiU,MingLiU-ExtB,MingLiU_HKSCS,MingLiU-HKSCS-ExtB,MS Gothic,MS Mincho,MS PGothic,MS PMincho,MS UI Gothic,PMingLiU,PMingLiU-ExtB,SimHei,SimSun,SimSun-ExtB,Hei,Kai,Apple LiGothic,Apple LiSung,Osaka");
|
||||
|
||||
#ifdef MOZ_B2G
|
||||
// Whitelist of fonts that ship with B2G that do not include space lookups in
|
||||
// default features. This allows us to skip analyzing the GSUB/GPOS tables
|
||||
// unless features are explicitly enabled.
|
||||
// Use NSPR_LOG_MODULES=fontinit:5 to dump out details of space lookups
|
||||
pref("font.whitelist.skip_default_features_space_check", "Fira Sans,Fira Mono");
|
||||
#endif
|
||||
|
||||
pref("images.dither", "auto");
|
||||
pref("security.directory", "");
|
||||
|
||||
|
@ -4415,7 +4407,7 @@ pref("gfx.font_rendering.fontconfig.max_generic_substitutions", 3);
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(ANDROID) || defined(MOZ_B2G)
|
||||
#if defined(ANDROID)
|
||||
|
||||
pref("font.size.fixed.ar", 12);
|
||||
|
||||
|
@ -4433,65 +4425,10 @@ pref("font.size.fixed.x-unicode", 12);
|
|||
pref("font.default.x-western", "sans-serif");
|
||||
pref("font.size.fixed.x-western", 12);
|
||||
|
||||
# ANDROID || MOZ_B2G
|
||||
# ANDROID
|
||||
#endif
|
||||
|
||||
#if defined(MOZ_B2G)
|
||||
// Gonk, FxOS Simulator, B2G Desktop and Mulet.
|
||||
|
||||
// TODO: some entries could probably be cleaned up.
|
||||
|
||||
// ar
|
||||
|
||||
pref("font.name-list.serif.el", "Droid Serif"); // not Charis SIL Compact, only has a few Greek chars
|
||||
pref("font.name-list.sans-serif.el", "Fira Sans");
|
||||
pref("font.name-list.monospace.el", "Fira Mono");
|
||||
|
||||
pref("font.name-list.serif.he", "Charis SIL Compact");
|
||||
pref("font.name-list.sans-serif.he", "Fira Sans, Droid Sans Hebrew");
|
||||
pref("font.name-list.monospace.he", "Fira Mono");
|
||||
|
||||
pref("font.name-list.serif.ja", "Charis SIL Compact");
|
||||
pref("font.name-list.sans-serif.ja", "Fira Sans, MotoyaLMaru, MotoyaLCedar, Droid Sans Japanese");
|
||||
pref("font.name-list.monospace.ja", "MotoyaLMaru, MotoyaLCedar, Fira Mono");
|
||||
|
||||
pref("font.name-list.serif.ko", "Charis SIL Compact");
|
||||
pref("font.name-list.sans-serif.ko", "Fira Sans");
|
||||
pref("font.name-list.monospace.ko", "Fira Mono");
|
||||
|
||||
pref("font.name-list.serif.th", "Charis SIL Compact");
|
||||
pref("font.name-list.sans-serif.th", "Fira Sans, Noto Sans Thai, Droid Sans Thai");
|
||||
pref("font.name-list.monospace.th", "Fira Mono");
|
||||
|
||||
pref("font.name-list.serif.x-cyrillic", "Charis SIL Compact");
|
||||
pref("font.name-list.sans-serif.x-cyrillic", "Fira Sans");
|
||||
pref("font.name-list.monospace.x-cyrillic", "Fira Mono");
|
||||
|
||||
pref("font.name-list.serif.x-unicode", "Charis SIL Compact");
|
||||
pref("font.name-list.sans-serif.x-unicode", "Fira Sans");
|
||||
pref("font.name-list.monospace.x-unicode", "Fira Mono");
|
||||
|
||||
pref("font.name-list.serif.x-western", "Charis SIL Compact");
|
||||
pref("font.name-list.sans-serif.x-western", "Fira Sans");
|
||||
pref("font.name-list.monospace.x-western", "Fira Mono");
|
||||
|
||||
pref("font.name-list.serif.zh-CN", "Charis SIL Compact");
|
||||
pref("font.name-list.sans-serif.zh-CN", "Fira Sans, Droid Sans Fallback");
|
||||
pref("font.name-list.monospace.zh-CN", "Fira Mono");
|
||||
|
||||
pref("font.name-list.serif.zh-HK", "Charis SIL Compact");
|
||||
pref("font.name-list.sans-serif.zh-HK", "Fira Sans, Droid Sans Fallback");
|
||||
pref("font.name-list.monospace.zh-HK", "Fira Mono");
|
||||
|
||||
pref("font.name-list.serif.zh-TW", "Charis SIL Compact");
|
||||
pref("font.name-list.sans-serif.zh-TW", "Fira Sans, Droid Sans Fallback");
|
||||
pref("font.name-list.monospace.zh-TW", "Fira Mono");
|
||||
|
||||
pref("font.name-list.serif.x-math", "Latin Modern Math, STIX Two Math, XITS Math, Cambria Math, Libertinus Math, DejaVu Math TeX Gyre, TeX Gyre Bonum Math, TeX Gyre Pagella Math, TeX Gyre Schola, TeX Gyre Termes Math, STIX Math, Asana Math, STIXGeneral, DejaVu Serif, DejaVu Sans, Charis SIL Compact");
|
||||
pref("font.name-list.sans-serif.x-math", "Fira Sans");
|
||||
pref("font.name-list.monospace.x-math", "Fira Mono");
|
||||
|
||||
#elif defined(ANDROID)
|
||||
#if defined(ANDROID)
|
||||
// We use the bundled fonts for Firefox for Android
|
||||
|
||||
pref("font.name-list.serif.ar", "Noto Naskh Arabic, Noto Serif, Droid Serif");
|
||||
|
|
|
@ -526,9 +526,7 @@ nsresult PREF_GetBoolPref(const char *pref_name, bool * return_value, bool get_d
|
|||
nsresult
|
||||
PREF_DeleteBranch(const char *branch_name)
|
||||
{
|
||||
#ifndef MOZ_B2G
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
#endif
|
||||
|
||||
int len = (int)strlen(branch_name);
|
||||
|
||||
|
@ -589,9 +587,7 @@ PREF_ClearUserPref(const char *pref_name)
|
|||
nsresult
|
||||
PREF_ClearAllUserPrefs()
|
||||
{
|
||||
#ifndef MOZ_B2G
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
#endif
|
||||
|
||||
if (!gHashTable)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
|
@ -735,9 +731,7 @@ inInitArray(const char* key)
|
|||
|
||||
PrefHashEntry* pref_HashTableLookup(const char *key)
|
||||
{
|
||||
#ifndef MOZ_B2G
|
||||
MOZ_ASSERT(NS_IsMainThread() || mozilla::ServoStyleSet::IsInServoTraversal());
|
||||
#endif
|
||||
MOZ_ASSERT((!XRE_IsContentProcess() || gPhase != START),
|
||||
"pref access before commandline prefs set");
|
||||
/* If you're hitting this assertion, you've added a pref access to start up.
|
||||
|
@ -756,9 +750,7 @@ PrefHashEntry* pref_HashTableLookup(const char *key)
|
|||
|
||||
nsresult pref_HashPref(const char *key, PrefValue value, PrefType type, uint32_t flags)
|
||||
{
|
||||
#ifndef MOZ_B2G
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
#endif
|
||||
|
||||
if (!gHashTable)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
|
Загрузка…
Ссылка в новой задаче