1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

LibWeb: Make LineBuilder aware of the current LayoutMode

This will allow us to override the available space correctly when doing
intrinsic sizing.
This commit is contained in:
Andreas Kling 2022-03-18 14:39:07 +01:00
parent 915ee66bd6
commit 28642de6ed
3 changed files with 5 additions and 3 deletions

View file

@ -197,7 +197,7 @@ void InlineFormattingContext::generate_line_boxes(LayoutMode layout_mode)
line_boxes.clear_with_capacity();
InlineLevelIterator iterator(*this, m_state, containing_block(), layout_mode);
LineBuilder line_builder(*this, m_state);
LineBuilder line_builder(*this, m_state, layout_mode);
for (;;) {
auto item_opt = iterator.next(line_builder.available_width_for_current_line());