Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions Libraries/LibWeb/Rust/src/layout/block_formatting_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2384,27 +2384,6 @@ impl BlockFormattingContext {
}
}

pub(crate) fn finalize_float_root(
&self,
node: Node,
input: &LayoutInput,
run_automatic_sizes: Option<(CssPixels, CssPixels)>,
) {
// A floating table wrapper shrink-to-fits from cached intrinsic sizes, which may not match
// the inline size table layout just produced; the wrapper has the same inline size as the table grid box.
if self.facts(node).is_table_wrapper()
&& let Some((automatic_content_inline_size, _)) = run_automatic_sizes
{
self.used(node).set_content_inline_size(automatic_content_inline_size);
}
self.resolve_used_block_size_if_treated_as_auto(
node,
input.available_space,
input.containing_block_constraints,
run_automatic_sizes.map(|(_, automatic_content_block_size)| automatic_content_block_size),
);
}

pub(crate) fn layout_floating_box(
&self,
run: &FormattingContextRun,
Expand Down
Loading
Loading