Bladeren bron

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 jaren geleden
bovenliggende
commit
38b55ee067
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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
 HitTestResult LayoutBlock::hit_test(const Point& position) const
 {
 {
     if (!children_are_inline())
     if (!children_are_inline())
-        return LayoutNode::hit_test(position);
+        return LayoutBox::hit_test(position);
 
 
     HitTestResult result;
     HitTestResult result;
     for (auto& line_box : m_line_boxes) {
     for (auto& line_box : m_line_boxes) {