mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Bug 1435984 - patch 1 - Cache the font-variations.enabled pref in StylePrefs for ready access in descriptor parsing. r=jwatt
--HG-- extra : source : 76e5042012c9c2f9c94953c62ea6f758f128e6f3
This commit is contained in:
parent
a1e51ad3ec
commit
7e99aa819c
@ -21,6 +21,7 @@ bool StylePrefs::sUnprefixedFullscreenApiEnabled;
|
||||
bool StylePrefs::sVisitedLinksEnabled;
|
||||
bool StylePrefs::sMozDocumentEnabledInContent;
|
||||
bool StylePrefs::sGridTemplateSubgridValueEnabled;
|
||||
bool StylePrefs::sFontVariationsEnabled;
|
||||
bool StylePrefs::sEmulateMozBoxWithFlex;
|
||||
|
||||
/* static */ void
|
||||
@ -48,6 +49,8 @@ StylePrefs::Init()
|
||||
"layout.css.moz-document.content.enabled");
|
||||
Preferences::AddBoolVarCache(&sGridTemplateSubgridValueEnabled,
|
||||
"layout.css.grid-template-subgrid-value.enabled");
|
||||
Preferences::AddBoolVarCache(&sFontVariationsEnabled,
|
||||
"layout.css.font-variations.enabled");
|
||||
|
||||
// Only honor layout.css.emulate-moz-box-with-flex in prerelease builds.
|
||||
// (In release builds, sEmulateMozBoxWithFlex will be implicitly false.)
|
||||
|
@ -24,6 +24,7 @@ struct StylePrefs
|
||||
static bool sVisitedLinksEnabled;
|
||||
static bool sMozDocumentEnabledInContent;
|
||||
static bool sGridTemplateSubgridValueEnabled;
|
||||
static bool sFontVariationsEnabled;
|
||||
static bool sEmulateMozBoxWithFlex;
|
||||
|
||||
static void Init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user