mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -115,7 +115,6 @@ pub(crate) fn outer_inline(
|
|||
auto_minimum: &LogicalVec2<Au>,
|
||||
auto_block_size_stretches_to_containing_block: bool,
|
||||
is_replaced: bool,
|
||||
is_table: bool,
|
||||
establishes_containing_block: bool,
|
||||
get_preferred_aspect_ratio: impl FnOnce(&LogicalVec2<Au>) -> Option<AspectRatio>,
|
||||
get_content_size: impl FnOnce(&ConstraintSpace) -> InlineContentSizesResult,
|
||||
|
@ -234,7 +233,7 @@ pub(crate) fn outer_inline(
|
|||
|
||||
// Regardless of their sizing properties, tables are always forced to be at least
|
||||
// as big as their min-content size, so floor the minimums.
|
||||
if is_table {
|
||||
if layout_style.is_table() {
|
||||
min_min_content.max_assign(content_size.sizes.min_content);
|
||||
min_max_content.max_assign(content_size.sizes.min_content);
|
||||
min_depends_on_block_constraints |= content_size.depends_on_block_constraints;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue