mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:47:46 +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
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue