From 9a37424dca3b3f63c885bc0888837ecc2540197a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 27 Feb 2023 12:41:13 +0000 Subject: [PATCH] style: Make -moz-box-layout: flex default, and clean-up CSS Now it's on by default everywhere, so all this is not needed. No behavior change effectively since the xul.css bits being removed effectively achieve the same. Differential Revision: https://phabricator.services.mozilla.com/D170944 --- components/style/gecko/media_features.rs | 6 +----- components/style/properties/longhands/inherited_box.mako.rs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/components/style/gecko/media_features.rs b/components/style/gecko/media_features.rs index 35d57346034..e2ba9f62f0f 100644 --- a/components/style/gecko/media_features.rs +++ b/components/style/gecko/media_features.rs @@ -618,7 +618,7 @@ macro_rules! bool_pref_feature { /// to support new types in these entries and (2) ensuring that either /// nsPresContext::MediaFeatureValuesChanged is called when the value that /// would be returned by the evaluator function could change. -pub static MEDIA_FEATURES: [QueryFeatureDescription; 64] = [ +pub static MEDIA_FEATURES: [QueryFeatureDescription; 63] = [ feature!( atom!("width"), AllowsRanges::Yes, @@ -916,10 +916,6 @@ pub static MEDIA_FEATURES: [QueryFeatureDescription; 64] = [ ), lnf_int_feature!(atom!("-moz-system-dark-theme"), SystemUsesDarkTheme), lnf_int_feature!(atom!("-moz-panel-animations"), PanelAnimations), - bool_pref_feature!( - atom!("-moz-box-flexbox-emulation"), - "layout.css.moz-box-flexbox-emulation.enabled" - ), // media query for MathML Core's implementation of maction/semantics bool_pref_feature!( atom!("-moz-mathml-core-maction-and-semantics"), diff --git a/components/style/properties/longhands/inherited_box.mako.rs b/components/style/properties/longhands/inherited_box.mako.rs index 59f28f827af..1b95bfe9ed8 100644 --- a/components/style/properties/longhands/inherited_box.mako.rs +++ b/components/style/properties/longhands/inherited_box.mako.rs @@ -47,7 +47,7 @@ ${helpers.single_keyword( ${helpers.single_keyword( "-moz-box-layout", - "legacy flex", + "flex legacy", engines="gecko", gecko_enum_prefix="StyleMozBoxLayout", animation_value_type="none",