diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp b/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp index 51d022eea9..0088530355 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp @@ -155,8 +155,12 @@ Optional<InlineLevelIterator::Item> InlineLevelIterator::next(float available_wi } if (m_current_node->is_absolutely_positioned()) { + auto& node = *m_current_node; skip_to_next(); - return next(available_width); + return Item { + .type = Item::Type::AbsolutelyPositionedElement, + .node = &node, + }; } if (is<Layout::BreakNode>(*m_current_node)) { |