From 38b55ee0678a1c5366b49cb46a3af8554da755ec Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 15 Oct 2019 22:02:11 +0200 Subject: 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. --- Libraries/LibHTML/Layout/LayoutBlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries/LibHTML/Layout/LayoutBlock.cpp') diff --git a/Libraries/LibHTML/Layout/LayoutBlock.cpp b/Libraries/LibHTML/Layout/LayoutBlock.cpp index 31c1b95f7f..b9bdbca280 100644 --- a/Libraries/LibHTML/Layout/LayoutBlock.cpp +++ b/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) { -- cgit v1.2.3