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
Notes: sideshowbarker 2024-07-17 17:08:01 +09:00

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 {};
}
}