Browse Source

LibHTML: LayoutBlock::hit_test() was calling the wrong parent class

Oops, we now need to call LayoutBox instead of LayoutNode for blocks
with non-inline children.
Andreas Kling 5 năm trước cách đây
mục cha
commit
38b55ee067
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Libraries/LibHTML/Layout/LayoutBlock.cpp

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

@@ -223,7 +223,7 @@ bool LayoutBlock::children_are_inline() const
 HitTestResult LayoutBlock::hit_test(const Point& position) const
 {
     if (!children_are_inline())
-        return LayoutNode::hit_test(position);
+        return LayoutBox::hit_test(position);
 
     HitTestResult result;
     for (auto& line_box : m_line_boxes) {