summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-10-15 22:02:11 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-10-15 22:02:58 +0200
commit38b55ee0678a1c5366b49cb46a3af8554da755ec (patch)
treedb83177beba7fa02e23bb1be716a7ab2d78c5ebc
parent18fa662eb2183a16e5abfd110540ba0d47f5e53a (diff)
downloadserenity-38b55ee0678a1c5366b49cb46a3af8554da755ec.zip
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.
-rw-r--r--Libraries/LibHTML/Layout/LayoutBlock.cpp2
1 files changed, 1 insertions, 1 deletions
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) {