зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1872784 - Remove layout.css.font-display.enabled pref r=jfkthame,webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D197558
This commit is contained in:
Родитель
23271e7f18
Коммит
7b6b8a038f
|
@ -20,7 +20,7 @@ dictionary FontFaceDescriptors {
|
|||
UTF8String variant = "normal";
|
||||
UTF8String featureSettings = "normal";
|
||||
[Pref="layout.css.font-variations.enabled"] UTF8String variationSettings = "normal";
|
||||
[Pref="layout.css.font-display.enabled"] UTF8String display = "auto";
|
||||
UTF8String display = "auto";
|
||||
UTF8String ascentOverride = "normal";
|
||||
UTF8String descentOverride = "normal";
|
||||
UTF8String lineGapOverride = "normal";
|
||||
|
@ -44,7 +44,7 @@ interface FontFace {
|
|||
[SetterThrows] attribute UTF8String variant;
|
||||
[SetterThrows] attribute UTF8String featureSettings;
|
||||
[SetterThrows, Pref="layout.css.font-variations.enabled"] attribute UTF8String variationSettings;
|
||||
[SetterThrows, Pref="layout.css.font-display.enabled"] attribute UTF8String display;
|
||||
[SetterThrows] attribute UTF8String display;
|
||||
[SetterThrows] attribute UTF8String ascentOverride;
|
||||
[SetterThrows] attribute UTF8String descentOverride;
|
||||
[SetterThrows] attribute UTF8String lineGapOverride;
|
||||
|
|
|
@ -156,10 +156,6 @@ nsCSSFontDesc nsCSSProps::LookupFontDesc(const nsACString& aFontDesc) {
|
|||
MOZ_ASSERT(gFontDescTable, "no lookup table, needs addref");
|
||||
nsCSSFontDesc which = nsCSSFontDesc(gFontDescTable->Lookup(aFontDesc));
|
||||
|
||||
if (which == eCSSFontDesc_Display &&
|
||||
!StaticPrefs::layout_css_font_display_enabled()) {
|
||||
which = eCSSFontDesc_UNKNOWN;
|
||||
}
|
||||
return which;
|
||||
}
|
||||
|
||||
|
|
|
@ -372,9 +372,6 @@ void nsFontFaceLoader::Cancel() {
|
|||
}
|
||||
|
||||
StyleFontDisplay nsFontFaceLoader::GetFontDisplay() {
|
||||
if (!StaticPrefs::layout_css_font_display_enabled()) {
|
||||
return StyleFontDisplay::Auto;
|
||||
}
|
||||
return mUserFontEntry->GetFontDisplay();
|
||||
}
|
||||
|
||||
|
|
|
@ -110,8 +110,7 @@ function runTest() {
|
|||
SimpleTest.waitForExplicitFinish();
|
||||
SimpleTest.requestLongerTimeout(5);
|
||||
|
||||
SpecialPowers.pushPrefEnv({ set: [["layout.css.font-display.enabled", true]] },
|
||||
runTest);
|
||||
runTest();
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
|
|
|
@ -378,8 +378,9 @@ function runTest() {
|
|||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
SpecialPowers.pushPrefEnv({ set: [["layout.css.font-display.enabled", true]] },
|
||||
runTest);
|
||||
|
||||
runTest();
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<script src=descriptor_database.js></script>
|
||||
|
||||
<body onload="start()">
|
||||
<body onload="runTest()">
|
||||
<iframe id=v src="file_font_loading_api_vframe.html"></iframe>
|
||||
<iframe id=n style="display: none"></iframe>
|
||||
|
||||
|
@ -1886,10 +1886,6 @@ function runTest() {
|
|||
});
|
||||
}
|
||||
|
||||
function start() {
|
||||
SpecialPowers.pushPrefEnv({ set: [["layout.css.font-display.enabled", true]] }, runTest);
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
SimpleTest.requestLongerTimeout(5);
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
#
|
||||
# - `rust` indicates if the mirror variable is used by Rust code. If so, it
|
||||
# will be usable via the `static_prefs::pref!` macro, e.g.
|
||||
# `static_prefs::pref!("layout.css.font-display.enabled")`.
|
||||
# `static_prefs::pref!("layout.css.cross-fade.enabled")`.
|
||||
#
|
||||
# The getter function's base name is the same as the pref's name, but with
|
||||
# '.' or '-' chars converted to '_', to make a valid identifier. For example,
|
||||
|
@ -8433,13 +8433,6 @@
|
|||
#endif
|
||||
mirror: always
|
||||
|
||||
# Is support for the font-display @font-face descriptor enabled?
|
||||
- name: layout.css.font-display.enabled
|
||||
type: RelaxedAtomicBool
|
||||
value: true
|
||||
mirror: always
|
||||
rust: true
|
||||
|
||||
# Is support for the @font-palette-values rule and font-palette property enabled?
|
||||
- name: layout.css.font-palette.enabled
|
||||
type: RelaxedAtomicBool
|
||||
|
|
|
@ -614,9 +614,6 @@ impl Parse for Source {
|
|||
}
|
||||
|
||||
macro_rules! is_descriptor_enabled {
|
||||
("font-display") => {
|
||||
static_prefs::pref!("layout.css.font-display.enabled")
|
||||
};
|
||||
("font-variation-settings") => {
|
||||
static_prefs::pref!("layout.css.font-variations.enabled")
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче