From 6a1078c55177df15273634a0db0e6ed51794fa8a Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Tue, 25 Sep 2018 11:53:04 +0000 Subject: [PATCH] style: [CSD] Enable round corners by default by -moz-gtk-csd-transparent-background media query. Replace mozilla.widget.use-argb-visuals pref by -moz-gtk-csd-transparent-background media query at browser.css to draw transparent background. The media query is set by toolkit code and enabled when compatible window manager is detected. Differential Revision: https://phabricator.services.mozilla.com/D6658 --- components/style/gecko/media_features.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/style/gecko/media_features.rs b/components/style/gecko/media_features.rs index 5c744f24220..9e84a7722b1 100644 --- a/components/style/gecko/media_features.rs +++ b/components/style/gecko/media_features.rs @@ -479,7 +479,7 @@ lazy_static! { /// 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 ref MEDIA_FEATURES: [MediaFeatureDescription; 47] = [ + pub static ref MEDIA_FEATURES: [MediaFeatureDescription; 48] = [ feature!( atom!("width"), AllowsRanges::Yes, @@ -660,6 +660,7 @@ lazy_static! { system_metric_feature!(atom!("-moz-menubar-drag")), system_metric_feature!(atom!("-moz-swipe-animation-enabled")), system_metric_feature!(atom!("-moz-gtk-csd-available")), + system_metric_feature!(atom!("-moz-gtk-csd-transparent-background")), system_metric_feature!(atom!("-moz-gtk-csd-minimize-button")), system_metric_feature!(atom!("-moz-gtk-csd-maximize-button")), system_metric_feature!(atom!("-moz-gtk-csd-close-button")),