diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/EventTarget.h')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/EventTarget.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/EventTarget.h b/Userland/Libraries/LibWeb/DOM/EventTarget.h index 81fa073610..9d94fb9129 100644 --- a/Userland/Libraries/LibWeb/DOM/EventTarget.h +++ b/Userland/Libraries/LibWeb/DOM/EventTarget.h @@ -36,8 +36,8 @@ public: void add_event_listener_without_options(FlyString const& type, IDLEventListener& callback); void remove_event_listener_without_options(FlyString const& type, IDLEventListener& callback); - virtual bool dispatch_event(NonnullRefPtr<Event>); - ExceptionOr<bool> dispatch_event_binding(NonnullRefPtr<Event>); + virtual bool dispatch_event(Event&); + ExceptionOr<bool> dispatch_event_binding(Event&); virtual JS::Object* create_wrapper(JS::Realm&) = 0; |