LibWeb: Explicitly update LineBuilder's last line at end of IFC run

Currently we're relying on LineBuilder's destructor to handle updating
the last line, if required. In order to fix an issue with our absolute
positioning code, we need to be able to update the last line earlier
than that. Remove the destructor and replace it with an explicit call to
LineBuilder::update_last_line().

No functional changes.
This commit is contained in:
Jelle Raaijmakers 2025-08-27 23:59:26 +02:00 committed by Jelle Raaijmakers
commit 349fdd9f47
Notes: github-actions[bot] 2025-08-28 11:46:53 +00:00
3 changed files with 7 additions and 8 deletions

View file

@ -447,6 +447,8 @@ void InlineFormattingContext::generate_line_boxes()
auto& box_state = m_state.get_mutable(*box);
box_state.set_static_position_rect(calculate_static_position_rect(*box));
}
line_builder.update_last_line();
}
bool InlineFormattingContext::any_floats_intrude_at_block_offset(CSSPixels block_offset) const