1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

LibWeb: Make Paintable::hit_test() return nothing

For paintables that don't know how to hit test themselves, let's just
return nothing instead of crashing.
This commit is contained in:
Andreas Kling 2022-03-18 22:17:42 +01:00
parent 3f55271c8e
commit 48abbefb99

View file

@ -43,7 +43,7 @@ bool Paintable::handle_mousewheel(Badge<EventHandler>, Gfx::IntPoint const&, uns
HitTestResult Paintable::hit_test(Gfx::FloatPoint const&, HitTestType) const
{
VERIFY_NOT_REACHED();
return {};
}
}