summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting/LabelablePaintable.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-11-02 17:35:53 +0000
committerLinus Groh <mail@linusgroh.de>2022-12-10 12:03:19 +0000
commit3c7bd5a317515ac572610eba2919c82dcd320a1e (patch)
treee716f6049c9bd58ba9f07c8d9fa9aaa42f23a39f /Userland/Libraries/LibWeb/Painting/LabelablePaintable.h
parent045aa8530c56b9a58f5e9150f17cb08e29bf5ab2 (diff)
downloadserenity-3c7bd5a317515ac572610eba2919c82dcd320a1e.zip
LibWeb+WebContent+headless-browser: Use CSSPixels for PageClient events
...and also for hit testing, which is involved in most of them. Much of this is temporary conversions and other awkwardness, which should resolve itself as the rest of LibWeb is converted to these new types. Hopefully. :thousandyakstare:
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/LabelablePaintable.h')
-rw-r--r--Userland/Libraries/LibWeb/Painting/LabelablePaintable.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/LabelablePaintable.h b/Userland/Libraries/LibWeb/Painting/LabelablePaintable.h
index 7f256f628f..c64555c127 100644
--- a/Userland/Libraries/LibWeb/Painting/LabelablePaintable.h
+++ b/Userland/Libraries/LibWeb/Painting/LabelablePaintable.h
@@ -21,9 +21,9 @@ public:
Layout::FormAssociatedLabelableNode& layout_box();
virtual bool wants_mouse_events() const override { return true; }
- virtual DispatchEventOfSameName handle_mousedown(Badge<EventHandler>, Gfx::IntPoint, unsigned button, unsigned modifiers) override;
- virtual DispatchEventOfSameName handle_mouseup(Badge<EventHandler>, Gfx::IntPoint, unsigned button, unsigned modifiers) override;
- virtual DispatchEventOfSameName handle_mousemove(Badge<EventHandler>, Gfx::IntPoint, unsigned buttons, unsigned modifiers) override;
+ virtual DispatchEventOfSameName handle_mousedown(Badge<EventHandler>, CSSPixelPoint, unsigned button, unsigned modifiers) override;
+ virtual DispatchEventOfSameName handle_mouseup(Badge<EventHandler>, CSSPixelPoint, unsigned button, unsigned modifiers) override;
+ virtual DispatchEventOfSameName handle_mousemove(Badge<EventHandler>, CSSPixelPoint, unsigned buttons, unsigned modifiers) override;
void handle_associated_label_mousedown(Badge<Layout::Label>);
void handle_associated_label_mouseup(Badge<Layout::Label>);