mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Ensure UIEventInit.view is set for mouse and pointer events
This commit is contained in:
parent
a60debe7bb
commit
83b1ead1e7
Notes:
github-actions[bot]
2025-08-20 07:14:35 +00:00
Author: https://github.com/tcl3
Commit: 83b1ead1e7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5919
Reviewed-by: https://github.com/gmta ✅
10 changed files with 81 additions and 18 deletions
|
|
@ -31,7 +31,7 @@ class MouseEvent : public UIEvent {
|
|||
|
||||
public:
|
||||
[[nodiscard]] static GC::Ref<MouseEvent> create(JS::Realm&, FlyString const& event_name, MouseEventInit const& = {}, double page_x = 0, double page_y = 0, double offset_x = 0, double offset_y = 0);
|
||||
static WebIDL::ExceptionOr<GC::Ref<MouseEvent>> create_from_platform_event(JS::Realm&, FlyString const& event_name, CSSPixelPoint screen, CSSPixelPoint page, CSSPixelPoint client, CSSPixelPoint offset, Optional<CSSPixelPoint> movement, unsigned button, unsigned buttons, unsigned modifiers);
|
||||
static WebIDL::ExceptionOr<GC::Ref<MouseEvent>> create_from_platform_event(JS::Realm&, GC::Ptr<HTML::WindowProxy>, FlyString const& event_name, CSSPixelPoint screen, CSSPixelPoint page, CSSPixelPoint client, CSSPixelPoint offset, Optional<CSSPixelPoint> movement, unsigned button, unsigned buttons, unsigned modifiers);
|
||||
static WebIDL::ExceptionOr<GC::Ref<MouseEvent>> construct_impl(JS::Realm&, FlyString const& event_name, MouseEventInit const&);
|
||||
|
||||
virtual ~MouseEvent() override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue