diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-15 01:54:22 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-15 02:05:53 +0100 |
commit | 6444525edc6e50723ca7e1818f8380327e5f665c (patch) | |
tree | af5a165ba68a1d06c401296450ee239811a076df | |
parent | e842e955e5d378fbd2d71ea32c4842f3e5a9214e (diff) | |
download | serenity-6444525edc6e50723ca7e1818f8380327e5f665c.zip |
LibWeb: Make InlineLevelIterator skip over positioned elements
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp b/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp index 4d7fd10053..13c14f75ff 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp @@ -137,6 +137,11 @@ Optional<InlineLevelIterator::Item> InlineLevelIterator::next(float available_wi return item; } + if (m_current_node->is_positioned()) { + skip_to_next(); + return next(available_width); + } + if (is<Layout::BreakNode>(*m_current_node)) { skip_to_next(); return Item { |