layout: Remove some unneeded is_table parameters (#35064)

We can just check the `LayoutStyle` instead.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-01-18 16:25:53 -08:00 committed by GitHub
parent 875e387004
commit f57ceeb3b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 20 deletions

View file

@ -817,6 +817,11 @@ impl LayoutStyle<'_> {
}
}
#[inline]
pub(crate) fn is_table(&self) -> bool {
matches!(self, Self::Table(_))
}
pub(crate) fn content_box_sizes_and_padding_border_margin(
&self,
containing_block: &IndefiniteContainingBlock,