mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17: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
|
@ -30,7 +30,7 @@ public:
|
|||
|
||||
void paint_descendants(PaintContext&, Layout::Node&, StackingContextPaintPhase) const;
|
||||
void paint(PaintContext&) const;
|
||||
HitTestResult hit_test(Gfx::FloatPoint const&, HitTestType) const;
|
||||
Optional<HitTestResult> hit_test(Gfx::FloatPoint const&, HitTestType) const;
|
||||
|
||||
void dump(int indent = 0) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue