From dd1cc6bb451f043a254bb4305690dc74d3a6f2bb Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Tue, 23 May 2017 18:15:47 -0700 Subject: [PATCH] stylo: Support -moz-window-shadow --- components/style/gecko/generated/structs_debug.rs | 5 +++++ components/style/gecko/generated/structs_release.rs | 5 +++++ components/style/properties/longhand/ui.mako.rs | 7 +++++++ 3 files changed, 17 insertions(+) diff --git a/components/style/gecko/generated/structs_debug.rs b/components/style/gecko/generated/structs_debug.rs index 7bfdc9c93d9..0e1193df0a7 100644 --- a/components/style/gecko/generated/structs_debug.rs +++ b/components/style/gecko/generated/structs_debug.rs @@ -806,6 +806,11 @@ pub mod root { 4; pub const NS_STYLE_CONTEXT_PROPERTY_FILL: ::std::os::raw::c_uint = 1; pub const NS_STYLE_CONTEXT_PROPERTY_STROKE: ::std::os::raw::c_uint = 2; + pub const NS_STYLE_WINDOW_SHADOW_NONE: ::std::os::raw::c_uint = 0; + pub const NS_STYLE_WINDOW_SHADOW_DEFAULT: ::std::os::raw::c_uint = 1; + pub const NS_STYLE_WINDOW_SHADOW_MENU: ::std::os::raw::c_uint = 2; + pub const NS_STYLE_WINDOW_SHADOW_TOOLTIP: ::std::os::raw::c_uint = 3; + pub const NS_STYLE_WINDOW_SHADOW_SHEET: ::std::os::raw::c_uint = 4; pub const NS_STYLE_DOMINANT_BASELINE_AUTO: ::std::os::raw::c_uint = 0; pub const NS_STYLE_DOMINANT_BASELINE_USE_SCRIPT: ::std::os::raw::c_uint = 1; diff --git a/components/style/gecko/generated/structs_release.rs b/components/style/gecko/generated/structs_release.rs index 8b77df41d4d..0c495d5cbd6 100644 --- a/components/style/gecko/generated/structs_release.rs +++ b/components/style/gecko/generated/structs_release.rs @@ -806,6 +806,11 @@ pub mod root { 4; pub const NS_STYLE_CONTEXT_PROPERTY_FILL: ::std::os::raw::c_uint = 1; pub const NS_STYLE_CONTEXT_PROPERTY_STROKE: ::std::os::raw::c_uint = 2; + pub const NS_STYLE_WINDOW_SHADOW_NONE: ::std::os::raw::c_uint = 0; + pub const NS_STYLE_WINDOW_SHADOW_DEFAULT: ::std::os::raw::c_uint = 1; + pub const NS_STYLE_WINDOW_SHADOW_MENU: ::std::os::raw::c_uint = 2; + pub const NS_STYLE_WINDOW_SHADOW_TOOLTIP: ::std::os::raw::c_uint = 3; + pub const NS_STYLE_WINDOW_SHADOW_SHEET: ::std::os::raw::c_uint = 4; pub const NS_STYLE_DOMINANT_BASELINE_AUTO: ::std::os::raw::c_uint = 0; pub const NS_STYLE_DOMINANT_BASELINE_USE_SCRIPT: ::std::os::raw::c_uint = 1; diff --git a/components/style/properties/longhand/ui.mako.rs b/components/style/properties/longhand/ui.mako.rs index 25cba0609c5..26186e3e3b6 100644 --- a/components/style/properties/longhand/ui.mako.rs +++ b/components/style/properties/longhand/ui.mako.rs @@ -31,6 +31,13 @@ ${helpers.single_keyword("-moz-window-dragging", "default drag no-drag", product animation_value_type="none", spec="None (Nonstandard Firefox-only property)")} +${helpers.single_keyword("-moz-window-shadow", "none default menu tooltip sheet", products="gecko", + gecko_ffi_name="mWindowShadow", + gecko_constant_prefix="NS_STYLE_WINDOW_SHADOW", + animation_value_type="none", + internal=True, + spec="None (Nonstandard internal property)")} + <%helpers:longhand name="-moz-force-broken-image-icon" products="gecko" animation_value_type="none"