mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
875e387004
commit
f57ceeb3b4
5 changed files with 10 additions and 20 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue