From 4b7260d846b7fc8bddea06ac995c0b52f563f153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 11 May 2023 08:57:11 +0000 Subject: [PATCH] style: Remove dead GTK menu styling code Differential Revision: https://phabricator.services.mozilla.com/D177369 --- components/style/custom_properties.rs | 3 +-- components/style/gecko/media_features.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/components/style/custom_properties.rs b/components/style/custom_properties.rs index 03cb886f028..f7fdd0913e9 100644 --- a/components/style/custom_properties.rs +++ b/components/style/custom_properties.rs @@ -124,13 +124,12 @@ macro_rules! lnf_int_variable { }}; } -static CHROME_ENVIRONMENT_VARIABLES: [EnvironmentVariable; 7] = [ +static CHROME_ENVIRONMENT_VARIABLES: [EnvironmentVariable; 6] = [ lnf_int_variable!( atom!("-moz-gtk-csd-titlebar-radius"), TitlebarRadius, int_pixels ), - lnf_int_variable!(atom!("-moz-gtk-csd-menu-radius"), GtkMenuRadius, int_pixels), lnf_int_variable!( atom!("-moz-gtk-csd-close-button-position"), GTKCSDCloseButtonPosition, diff --git a/components/style/gecko/media_features.rs b/components/style/gecko/media_features.rs index 70e03dc297c..357f4d7b6ab 100644 --- a/components/style/gecko/media_features.rs +++ b/components/style/gecko/media_features.rs @@ -698,7 +698,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; 68] = [ +pub static MEDIA_FEATURES: [QueryFeatureDescription; 67] = [ feature!( atom!("width"), AllowsRanges::Yes, @@ -1014,7 +1014,6 @@ pub static MEDIA_FEATURES: [QueryFeatureDescription; 68] = [ ), lnf_int_feature!(atom!("-moz-system-dark-theme"), SystemUsesDarkTheme), lnf_int_feature!(atom!("-moz-panel-animations"), PanelAnimations), - bool_pref_feature!(atom!("-moz-gtk-non-native-menus"), "widget.gtk.non-native-menu-styling"), // media query for MathML Core's implementation of maction/semantics bool_pref_feature!( atom!("-moz-mathml-core-maction-and-semantics"),