Explorar o código

LibWeb: Make InlineLevelIterator skip over positioned elements

Andreas Kling %!s(int64=3) %!d(string=hai) anos
pai
achega
6444525edc
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp

+ 5 - 0
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 {