Ver Fonte

LibHTML: LayoutBlock::children_are_inline() should check is_inline()

Instead of asking if the first child is not a block, ask if it thinks
it's inline.
Andreas Kling há 5 anos atrás
pai
commit
724754e39a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Libraries/LibHTML/Layout/LayoutBlock.cpp

+ 1 - 1
Libraries/LibHTML/Layout/LayoutBlock.cpp

@@ -210,7 +210,7 @@ void LayoutBlock::render(RenderingContext& context)
 
 bool LayoutBlock::children_are_inline() const
 {
-    return first_child() && !first_child()->is_block();
+    return first_child() && first_child()->is_inline();
 }
 
 HitTestResult LayoutBlock::hit_test(const Point& position) const