mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
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:
committed by
Alexander Kalenik
parent
17f4ed6ea1
commit
ea04500bb2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user