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

@ -186,14 +186,6 @@ impl IndependentFormattingContext {
self.base.base_fragment_info
}
#[inline]
pub(crate) fn is_table(&self) -> bool {
match &self.contents {
IndependentFormattingContextContents::NonReplaced(content) => content.is_table(),
IndependentFormattingContextContents::Replaced(_) => false,
}
}
pub(crate) fn inline_content_sizes(
&self,
layout_context: &LayoutContext,
@ -222,7 +214,6 @@ impl IndependentFormattingContext {
auto_minimum,
auto_block_size_stretches_to_containing_block,
self.is_replaced(),
self.is_table(),
true, /* establishes_containing_block */
|padding_border_sums| self.preferred_aspect_ratio(padding_border_sums),
|constraint_space| self.inline_content_sizes(layout_context, constraint_space),