mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
stylo: Implement -moz-stack-sizing
MozReview-Commit-ID: 6mr4ktfeEGT
This commit is contained in:
parent
7e4f788172
commit
3b59dbadee
2 changed files with 19 additions and 0 deletions
|
@ -2851,6 +2851,18 @@ clip-path
|
|||
}
|
||||
</%self:impl_trait>
|
||||
|
||||
<%self:impl_trait style_struct_name="XUL"
|
||||
skip_longhands="-moz-stack-sizing">
|
||||
|
||||
#[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')}
|
||||
</%self:impl_trait>
|
||||
|
||||
<%def name="define_ffi_struct_accessor(style_struct)">
|
||||
#[no_mangle]
|
||||
#[allow(non_snake_case, unused_variables)]
|
||||
|
|
|
@ -22,3 +22,10 @@ ${helpers.predefined_type("-moz-box-flex", "Number", "0.0", "parse_non_negative"
|
|||
animatable=False,
|
||||
alias="-webkit-box-flex",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/box-flex)")}
|
||||
|
||||
|
||||
${helpers.single_keyword("-moz-stack-sizing", "stretch-to-fit ignore",
|
||||
products="gecko", gecko_ffi_name="mStretchStack",
|
||||
gecko_constant_prefix="NS_STYLE_STACK_SIZING",
|
||||
animatable=False,
|
||||
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