From a1acb29aed4c11a8d44821f3ed59c3daea66b08b Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Fri, 17 Mar 2017 17:52:46 +1100 Subject: [PATCH] Add support for -moz-box-ordinal-group --- components/style/properties/gecko.mako.rs | 9 ++++++++- components/style/properties/longhand/xul.mako.rs | 9 +++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index b72db38f91e..1851a0212a3 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -3334,7 +3334,7 @@ clip-path <%self:impl_trait style_struct_name="XUL" - skip_longhands="-moz-stack-sizing"> + skip_longhands="-moz-stack-sizing -moz-box-ordinal-group"> #[allow(non_snake_case)] pub fn set__moz_stack_sizing(&mut self, v: longhands::_moz_stack_sizing::computed_value::T) { @@ -3343,6 +3343,13 @@ clip-path } ${impl_simple_copy('_moz_stack_sizing', 'mStretchStack')} + + #[allow(non_snake_case)] + pub fn set__moz_box_ordinal_group(&mut self, v: i32) { + self.gecko.mBoxOrdinal = v as u32; + } + + ${impl_simple_copy("_moz_box_ordinal_group", "mBoxOrdinal")} <%def name="define_ffi_struct_accessor(style_struct)"> diff --git a/components/style/properties/longhand/xul.mako.rs b/components/style/properties/longhand/xul.mako.rs index d27e6c929af..0d2cff04e68 100644 --- a/components/style/properties/longhand/xul.mako.rs +++ b/components/style/properties/longhand/xul.mako.rs @@ -49,3 +49,12 @@ ${helpers.single_keyword("-moz-stack-sizing", "stretch-to-fit ignore", gecko_constant_prefix="NS_STYLE_STACK_SIZING", animatable=False, spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-stack-sizing)")} + +${helpers.predefined_type("-moz-box-ordinal-group", "Integer", "0", + parse_method="parse_non_negative", + needs_context=False, + products="gecko", + alias="-webkit-box-ordinal-group", + gecko_ffi_name="mBoxOrdinal", + animatable=False, + spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-box-ordinal-group)")}