1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

LibWeb: Remove unused argument of InlineLevelIterator::next

Also remove unused method from LineBuilder.
This commit is contained in:
Andi Gallo 2023-08-17 05:38:52 +00:00 committed by Andreas Kling
parent 768c35af71
commit ef6a78518f
4 changed files with 6 additions and 8 deletions

View file

@ -124,7 +124,7 @@ void InlineLevelIterator::skip_to_next()
compute_next();
}
Optional<InlineLevelIterator::Item> InlineLevelIterator::next(AvailableSize available_width)
Optional<InlineLevelIterator::Item> InlineLevelIterator::next()
{
if (!m_current_node)
return {};
@ -139,7 +139,7 @@ Optional<InlineLevelIterator::Item> InlineLevelIterator::next(AvailableSize avai
if (!chunk_opt.has_value()) {
m_text_node_context = {};
skip_to_next();
return next(available_width);
return next();
}
m_text_node_context->next_chunk = m_text_node_context->chunk_iterator.next();
@ -200,12 +200,12 @@ Optional<InlineLevelIterator::Item> InlineLevelIterator::next(AvailableSize avai
if (is<Layout::ListItemMarkerBox>(*m_current_node)) {
skip_to_next();
return next(available_width);
return next();
}
if (!is<Layout::Box>(*m_current_node)) {
skip_to_next();
return next(available_width);
return next();
}
if (is<Layout::ReplacedBox>(*m_current_node)) {