mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:05:08 +00:00
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:
parent
18fa662eb2
commit
38b55ee067
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue