1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:07:45 +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

@ -9,10 +9,11 @@
namespace Web::Layout {
LineBuilder::LineBuilder(InlineFormattingContext& context, FormattingState& formatting_state)
LineBuilder::LineBuilder(InlineFormattingContext& context, FormattingState& formatting_state, LayoutMode layout_mode)
: m_context(context)
, m_formatting_state(formatting_state)
, m_containing_block_state(formatting_state.get_mutable(context.containing_block()))
, m_layout_mode(layout_mode)
{
begin_new_line(false);
}