mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
layout: Make a new ContainingBlockSize
type (#34565)
This might make caching these values a bit easier in the future. Correcting the visibility of `ContainingBlock` also exposed some new rustc and clippy warnings that are fixed here. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
064569ff3c
commit
f1b8d49e77
13 changed files with 192 additions and 158 deletions
|
@ -190,7 +190,7 @@ impl CachedBlockSizeContribution {
|
|||
&self,
|
||||
item_as_containing_block: &ContainingBlock,
|
||||
) -> bool {
|
||||
item_as_containing_block.inline_size == self.containing_block_inline_size &&
|
||||
item_as_containing_block.block_size.is_auto()
|
||||
item_as_containing_block.size.inline == self.containing_block_inline_size &&
|
||||
item_as_containing_block.size.block.is_auto()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue