mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +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
|
@ -235,7 +235,7 @@ impl OutsideMarker {
|
|||
) -> Fragment {
|
||||
let content_sizes = self.block_container.inline_content_sizes(
|
||||
layout_context,
|
||||
&IndefiniteContainingBlock::new_for_style(&self.marker_style),
|
||||
&IndefiniteContainingBlock::new_for_writing_mode(self.marker_style.writing_mode),
|
||||
);
|
||||
let containing_block_for_children = ContainingBlock {
|
||||
inline_size: content_sizes.sizes.max_content,
|
||||
|
@ -2058,8 +2058,8 @@ impl IndependentFormattingContext {
|
|||
|
||||
let mut get_content_size = || {
|
||||
let containing_block_for_children =
|
||||
IndefiniteContainingBlock::new_for_style_and_block_size(
|
||||
&style,
|
||||
IndefiniteContainingBlock::new_for_writing_mode_and_block_size(
|
||||
style.writing_mode,
|
||||
tentative_block_size,
|
||||
);
|
||||
non_replaced
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue