mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:47:35 +00:00
LibWeb: Dimension inline-block boxes before deciding about line breaks
We won't know if we need to break before the inline-block box until after we've dimensioned it.
This commit is contained in:
parent
67b3f769fb
commit
d3adc94ce8
5 changed files with 7 additions and 4 deletions
|
@ -23,7 +23,7 @@ public:
|
|||
void append_box(Box&);
|
||||
void append_text_chunk(TextNode&, size_t offset_in_node, size_t length_in_node, float width, float height);
|
||||
|
||||
void break_if_needed(LayoutMode, float next_item_width);
|
||||
void break_if_needed(LayoutMode, float next_item_width, bool should_force_break);
|
||||
|
||||
float available_width_for_current_line() const { return m_available_width_for_current_line; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue