mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Remove -moz-* display values enabled-in-content prefs
We have unshipped these since forever, no point in keeping the pref around. Move the relevant tests to chrome ref/mochitests. Differential Revision: https://phabricator.services.mozilla.com/D154152
This commit is contained in:
parent
deeb5efd84
commit
4947dd027d
1 changed files with 3 additions and 12 deletions
|
@ -23,18 +23,9 @@ use style_traits::{SpecifiedValueInfo, StyleParseErrorKind, ToCss};
|
|||
|
||||
#[cfg(feature = "gecko")]
|
||||
fn moz_display_values_enabled(context: &ParserContext) -> bool {
|
||||
context.in_ua_or_chrome_sheet() ||
|
||||
static_prefs::pref!("layout.css.xul-display-values.content.enabled")
|
||||
context.in_ua_or_chrome_sheet()
|
||||
}
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
fn moz_box_display_values_enabled(context: &ParserContext) -> bool {
|
||||
context.in_ua_or_chrome_sheet() ||
|
||||
static_prefs::pref!("layout.css.xul-box-display-values.content.enabled")
|
||||
}
|
||||
|
||||
|
||||
|
||||
#[cfg(not(feature = "servo"))]
|
||||
fn flexbox_enabled() -> bool {
|
||||
true
|
||||
|
@ -561,9 +552,9 @@ impl Parse for Display {
|
|||
#[cfg(feature = "gecko")]
|
||||
"-webkit-inline-box" => Display::WebkitInlineBox,
|
||||
#[cfg(feature = "gecko")]
|
||||
"-moz-box" if moz_box_display_values_enabled(context) => Display::MozBox,
|
||||
"-moz-box" if moz_display_values_enabled(context) => Display::MozBox,
|
||||
#[cfg(feature = "gecko")]
|
||||
"-moz-inline-box" if moz_box_display_values_enabled(context) => Display::MozInlineBox,
|
||||
"-moz-inline-box" if moz_display_values_enabled(context) => Display::MozInlineBox,
|
||||
#[cfg(feature = "gecko")]
|
||||
"-moz-deck" if moz_display_values_enabled(context) => Display::MozDeck,
|
||||
#[cfg(feature = "gecko")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue