From aa810f77ecc0c6e3ae8fcfb9c5b59d07781d2875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 14 Feb 2023 20:35:25 +0000 Subject: [PATCH] style: Use non-native menus in Windows for documents where we don't have a native theme Untested, but it should work. Differential Revision: https://phabricator.services.mozilla.com/D169836 --- components/style/gecko/media_features.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/style/gecko/media_features.rs b/components/style/gecko/media_features.rs index 8f56f185d2a..7751b8dd162 100644 --- a/components/style/gecko/media_features.rs +++ b/components/style/gecko/media_features.rs @@ -538,8 +538,8 @@ fn eval_moz_platform(_: &Context, query_value: Option) -> bool { unsafe { bindings::Gecko_MediaFeatures_MatchesPlatform(query_value) } } -fn eval_moz_windows_non_native_menus(_: &Context) -> bool { - unsafe { bindings::Gecko_MediaFeatures_WindowsNonNativeMenus() } +fn eval_moz_windows_non_native_menus(context: &Context) -> bool { + unsafe { bindings::Gecko_MediaFeatures_WindowsNonNativeMenus(context.device().document()) } } fn eval_moz_overlay_scrollbars(context: &Context) -> bool {