From 78f2ddfc14be1483752a5373d34968768139a0eb Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 20 Jan 2022 16:17:29 +0100 Subject: LibWeb: Make InlineLevelIterator ignore list item marker boxes Marker boxes are managed explicitly by the corresponding list item box. --- Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Userland/Libraries/LibWeb/Layout') diff --git a/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp b/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp index b2d27bc5a7..192fb3431e 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Web::Layout { @@ -75,6 +76,11 @@ Optional InlineLevelIterator::next(float available_wi }; } + if (is(*m_current_node)) { + skip_to_next(); + return next(available_width); + } + if (!is(*m_current_node)) { skip_to_next(); return next(available_width); -- cgit v1.2.3