mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:27:45 +00:00
LibWeb: Update hit_test for CSS Transforms
This now also takes a FloatPoint instead of an IntPoint to avoid excessive rounding when multiple transforms apply on top of each other.
This commit is contained in:
parent
a2331e8dd3
commit
48efdaa8c4
7 changed files with 28 additions and 23 deletions
|
@ -50,7 +50,7 @@ public:
|
|||
virtual void before_children_paint(PaintContext&, PaintPhase) const { }
|
||||
virtual void after_children_paint(PaintContext&, PaintPhase) const { }
|
||||
|
||||
virtual HitTestResult hit_test(Gfx::IntPoint const&, HitTestType) const;
|
||||
virtual HitTestResult hit_test(Gfx::FloatPoint const&, HitTestType) const;
|
||||
|
||||
virtual bool wants_mouse_events() const { return false; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue