mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09: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
Notes:
sideshowbarker
2024-07-19 11:40:54 +09:00
Author: https://github.com/awesomekling
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
|
||||
{
|
||||
if (!children_are_inline())
|
||||
return LayoutNode::hit_test(position);
|
||||
return LayoutBox::hit_test(position);
|
||||
|
||||
HitTestResult result;
|
||||
for (auto& line_box : m_line_boxes) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue