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.
This commit is contained in:
Andreas Kling 2019-10-15 22:02:11 +02:00
parent 18fa662eb2
commit 38b55ee067
Notes: sideshowbarker 2024-07-19 11:40:54 +09:00

View file

@ -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) {