mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user