mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +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
Notes:
sideshowbarker
2024-07-17 17:00:02 +09:00
Author: https://github.com/awesomekling
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