mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +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
|
@ -62,6 +62,7 @@ Optional<InlineLevelIterator::Item> InlineLevelIterator::next(float available_wi
|
|||
.offset_in_node = chunk.start,
|
||||
.length_in_node = chunk.length,
|
||||
.width = chunk_width,
|
||||
.should_force_break = m_text_node_context->do_respect_linebreaks && chunk.has_breaking_newline,
|
||||
};
|
||||
|
||||
return item;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue