mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-31 15:32:51 +00:00
LibGfx: Unpublish FloatPoint from the global namespace
This commit is contained in:
parent
5c2028db24
commit
8bb75084fd
Notes:
sideshowbarker
2024-07-19 09:34:20 +09:00
Author: https://github.com/awesomekling
Commit: 8bb75084fd
5 changed files with 5 additions and 7 deletions
|
@ -212,7 +212,7 @@ HitTestResult LayoutBox::hit_test(const Gfx::Point& position) const
|
|||
// FIXME: It would be nice if we could confidently skip over hit testing
|
||||
// parts of the layout tree, but currently we can't just check
|
||||
// m_rect.contains() since inline text rects can't be trusted..
|
||||
HitTestResult result { m_rect.contains(FloatPoint(position.x(), position.y())) ? this : nullptr };
|
||||
HitTestResult result { m_rect.contains(position.x(), position.y()) ? this : nullptr };
|
||||
for_each_child([&](auto& child) {
|
||||
auto child_result = child.hit_test(position);
|
||||
if (child_result.layout_node)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue