mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue