mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +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
|
@ -277,7 +277,7 @@ impl ReplacedContent {
|
|||
depends_on_block_constraints: true,
|
||||
},
|
||||
_ => {
|
||||
let writing_mode = containing_block_for_children.style.writing_mode;
|
||||
let writing_mode = containing_block_for_children.writing_mode;
|
||||
InlineContentSizesResult {
|
||||
sizes: self
|
||||
.flow_relative_natural_size(writing_mode)
|
||||
|
@ -423,8 +423,7 @@ impl ReplacedContent {
|
|||
style
|
||||
.preferred_aspect_ratio(
|
||||
self.inline_size_over_block_size_intrinsic_ratio(style),
|
||||
containing_block.try_into().ok().as_ref(),
|
||||
containing_block.style.writing_mode,
|
||||
containing_block,
|
||||
)
|
||||
.or_else(|| {
|
||||
matches!(self.kind, ReplacedContentKind::Video(_)).then(|| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue