mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
layout: Add style to ConstraintSpace
and IndefiniteContainingBlock
(#39229)
They only had the writing mode, now they will have the entire computed style. This is needed for #39230. Testing: Not needed, no behavior change Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
dfdcba88d4
commit
9e9bd80bba
10 changed files with 44 additions and 62 deletions
|
@ -1092,7 +1092,7 @@ impl LayoutStyle<'_> {
|
|||
// we instead resolve indefinite percentages against zero.
|
||||
let containing_block_size_or_zero =
|
||||
containing_block.size.map(|value| value.unwrap_or_default());
|
||||
let writing_mode = containing_block.writing_mode;
|
||||
let writing_mode = containing_block.style.writing_mode;
|
||||
let pbm = self.padding_border_margin_with_writing_mode_and_containing_block_inline_size(
|
||||
writing_mode,
|
||||
containing_block_size_or_zero.inline,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue