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:
Oriol Brufau 2024-11-04 19:00:58 +01:00 committed by GitHub
parent 73d2f3c453
commit 072ff302d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 70 additions and 82 deletions

View file

@ -547,7 +547,10 @@ impl HoistedAbsolutelyPositionedBox {
// tentative block size.
let mut inline_axis = inline_axis_solver.solve(Some(|| {
let containing_block_for_children =
IndefiniteContainingBlock::new_for_style_and_block_size(&style, block_axis.size);
IndefiniteContainingBlock::new_for_writing_mode_and_block_size(
style.writing_mode,
block_axis.size,
);
context
.inline_content_sizes(
layout_context,