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:
Oriol Brufau 2025-09-11 23:53:14 +02:00 committed by GitHub
parent dfdcba88d4
commit 9e9bd80bba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 44 additions and 62 deletions

View file

@ -546,7 +546,7 @@ impl ComputeInlineContentSizes for ReplacedContents {
Direction::Inline,
constraint_space.preferred_aspect_ratio,
&|| constraint_space.block_size,
&|| self.fallback_inline_size(constraint_space.writing_mode),
&|| self.fallback_inline_size(constraint_space.style.writing_mode),
);
InlineContentSizesResult {
sizes: inline_content_size.into(),