diff options
author | Oriol Brufau <obrufau@igalia.com> | 2025-01-18 16:25:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-19 00:25:53 +0000 |
commit | f57ceeb3b43b7f9708a82a1006821149a49dda20 (patch) | |
tree | 4b2fe90245a34622b8d6f6168789de66a237280a /components/layout_2020/formatting_contexts.rs | |
parent | 875e3870049d2523ec349724d692a11665562d40 (diff) | |
download | servo-f57ceeb3b43b7f9708a82a1006821149a49dda20.tar.gz servo-f57ceeb3b43b7f9708a82a1006821149a49dda20.zip |
layout: Remove some unneeded `is_table` parameters (#35064)
We can just check the `LayoutStyle` instead.
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/layout_2020/formatting_contexts.rs')
-rw-r--r-- | components/layout_2020/formatting_contexts.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/components/layout_2020/formatting_contexts.rs b/components/layout_2020/formatting_contexts.rs index 4d1a17cc5c3..3419d1be8e2 100644 --- a/components/layout_2020/formatting_contexts.rs +++ b/components/layout_2020/formatting_contexts.rs @@ -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), |