mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 23:19:44 +00:00
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:
parent
191b026c9f
commit
fca2d71b16
Notes:
github-actions[bot]
2025-09-24 11:34:41 +00:00
Author: https://github.com/zacoons
Commit: fca2d71b16
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5530
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/kalenikaliaksandr
3 changed files with 47 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue