mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Allow creating a ContentSizes
from Au
(#33208)
No change in behavior, it just simplies some code a little bit. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
dbd0a79b3e
commit
50eb69a7e0
4 changed files with 21 additions and 36 deletions
|
@ -1940,20 +1940,16 @@ impl FlexItemBox {
|
|||
.outer_inline_content_sizes(layout_context, container_writing_mode, || {
|
||||
automatic_min_size
|
||||
}),
|
||||
FlexAxis::Column => {
|
||||
let size = self.layout_for_block_content_size(
|
||||
FlexAxis::Column => self
|
||||
.layout_for_block_content_size(
|
||||
flex_context_getter(),
|
||||
&pbm,
|
||||
content_box_size,
|
||||
content_min_size_no_auto,
|
||||
content_max_size,
|
||||
IntrinsicSizingMode::Contribution,
|
||||
);
|
||||
ContentSizes {
|
||||
min_content: size,
|
||||
max_content: size,
|
||||
}
|
||||
},
|
||||
)
|
||||
.into(),
|
||||
};
|
||||
|
||||
let content_box_size = flex_axis.vec2_to_flex_relative(content_box_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue