LibWeb: Set is_first_chunk to false as needed in InlineLevelIterator

`m_text_node_context->is_first_chunk` was always true because
`InlineLevelIterator::next_without_lookahead` never set it to false.
This commit is contained in:
zac 2025-08-08 21:09:42 +10:00 committed by Sam Atkins
commit fca2d71b16
Notes: github-actions[bot] 2025-09-24 11:34:41 +00:00
3 changed files with 47 additions and 0 deletions

View file

@ -493,6 +493,8 @@ Optional<InlineLevelIterator::Item> InlineLevelIterator::next_without_lookahead(
if (auto* text_node = as_if<Layout::TextNode>(*m_current_node)) {
if (!m_text_node_context.has_value())
enter_text_node(*text_node);
else
m_text_node_context->is_first_chunk = false;
auto chunk_opt = m_text_node_context->chunk_iterator.next();
if (!chunk_opt.has_value()) {