mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Allow -moz-stack-sizing to work in a single direction only.
This commit is contained in:
parent
d855c929ef
commit
2e686b323c
2 changed files with 4 additions and 13 deletions
|
@ -4199,16 +4199,7 @@ clip-path
|
|||
</%self:impl_trait>
|
||||
|
||||
<%self:impl_trait style_struct_name="XUL"
|
||||
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) {
|
||||
use properties::longhands::_moz_stack_sizing::computed_value::T;
|
||||
self.gecko.mStretchStack = v == T::stretch_to_fit;
|
||||
}
|
||||
|
||||
${impl_simple_copy('_moz_stack_sizing', 'mStretchStack')}
|
||||
|
||||
skip_longhands="-moz-box-ordinal-group">
|
||||
#[allow(non_snake_case)]
|
||||
pub fn set__moz_box_ordinal_group(&mut self, v: i32) {
|
||||
self.gecko.mBoxOrdinal = v as u32;
|
||||
|
|
|
@ -44,9 +44,9 @@ ${helpers.single_keyword("-moz-box-pack", "start center end justify",
|
|||
alias="-webkit-box-pack",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/box-pack)")}
|
||||
|
||||
${helpers.single_keyword("-moz-stack-sizing", "stretch-to-fit ignore",
|
||||
products="gecko", gecko_ffi_name="mStretchStack",
|
||||
gecko_constant_prefix="NS_STYLE_STACK_SIZING",
|
||||
${helpers.single_keyword("-moz-stack-sizing", "stretch-to-fit ignore ignore-horizontal ignore-vertical",
|
||||
products="gecko", gecko_ffi_name="mStackSizing",
|
||||
gecko_enum_prefix="StyleStackSizing",
|
||||
animation_value_type="none",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-stack-sizing)")}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue