mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Replace ComputedValues with WritingMode on IndefiniteContainingBlock (#34090)
We only need the writing mode, not the entire computed style. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
73d2f3c453
commit
072ff302d2
9 changed files with 70 additions and 82 deletions
|
@ -162,7 +162,10 @@ pub(crate) fn outer_inline(
|
|||
})
|
||||
.map_or(AuOrAuto::Auto, AuOrAuto::LengthPercentage);
|
||||
let containing_block_for_children =
|
||||
IndefiniteContainingBlock::new_for_style_and_block_size(style, block_size);
|
||||
IndefiniteContainingBlock::new_for_writing_mode_and_block_size(
|
||||
style.writing_mode,
|
||||
block_size,
|
||||
);
|
||||
get_content_size(&containing_block_for_children)
|
||||
});
|
||||
let resolve_non_initial = |inline_size| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue