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:
parent
915ee66bd6
commit
28642de6ed
3 changed files with 5 additions and 3 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue