1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 17:55:09 +00:00

LibGfx: Unpublish FloatPoint from the global namespace

This commit is contained in:
Andreas Kling 2020-02-06 14:35:54 +01:00
parent 5c2028db24
commit 8bb75084fd
5 changed files with 5 additions and 7 deletions

View file

@ -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)