mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Add support for -moz-box-ordinal-group
This commit is contained in:
parent
ab0e5c9d99
commit
a1acb29aed
2 changed files with 17 additions and 1 deletions
|
@ -3334,7 +3334,7 @@ clip-path
|
|||
</%self:impl_trait>
|
||||
|
||||
<%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")}
|
||||
</%self:impl_trait>
|
||||
|
||||
<%def name="define_ffi_struct_accessor(style_struct)">
|
||||
|
|
|
@ -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)")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue