From 48abbefb99c27fd6dd39d90cbac07e3b23796281 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 18 Mar 2022 22:17:42 +0100 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/Painting/Paintable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Painting/Paintable.cpp b/Userland/Libraries/LibWeb/Painting/Paintable.cpp index 83a19f6a4e..be4d3c64d8 100644 --- a/Userland/Libraries/LibWeb/Painting/Paintable.cpp +++ b/Userland/Libraries/LibWeb/Painting/Paintable.cpp @@ -43,7 +43,7 @@ bool Paintable::handle_mousewheel(Badge, Gfx::IntPoint const&, uns HitTestResult Paintable::hit_test(Gfx::FloatPoint const&, HitTestType) const { - VERIFY_NOT_REACHED(); + return {}; } }