LibWeb: Remove unreachable abspos width calculation in BFC

compute_width() could never be invoked for abspos boxes because they
are skipped during normal layout and processed in
parent_context_did_dimension_child_root_box()
This commit is contained in:
Aliaksandr Kalenik 2024-09-15 15:46:48 +02:00 committed by Alexander Kalenik
parent 17f4ed6ea1
commit ea04500bb2
Notes: github-actions[bot] 2024-09-15 14:58:14 +00:00

View file

@ -135,11 +135,6 @@ bool BlockFormattingContext::box_should_avoid_floats_because_it_establishes_fc(B
void BlockFormattingContext::compute_width(Box const& box, AvailableSpace const& available_space)
{
if (box.is_absolutely_positioned()) {
compute_width_for_absolutely_positioned_element(box, available_space);
return;
}
auto remaining_available_space = available_space;
if (available_space.width.is_definite() && box_should_avoid_floats_because_it_establishes_fc(box)) {
// NOTE: Although CSS 2.2 specification says that only block formatting contexts should avoid floats,