mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibWeb: Make hit testing functions return Optional<HitTestResult>
Using "HitTestResult with null paintable" as a way to signal misses was unnecessarily confusing. Let's use Optional instead. :^)
This commit is contained in:
parent
8c88ee1165
commit
0ba785894c
7 changed files with 50 additions and 44 deletions
|
@ -41,7 +41,7 @@ bool Paintable::handle_mousewheel(Badge<EventHandler>, Gfx::IntPoint const&, uns
|
|||
return false;
|
||||
}
|
||||
|
||||
HitTestResult Paintable::hit_test(Gfx::FloatPoint const&, HitTestType) const
|
||||
Optional<HitTestResult> Paintable::hit_test(Gfx::FloatPoint const&, HitTestType) const
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue