mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
LibWeb: Provide a default DOM::EventTarget::dispatch_event()
All EventTarget subclasses except Window do the same exact thing in their overrides, so let's just share an implementation in the base.
This commit is contained in:
parent
8dcf4e0346
commit
0ee457dfdf
Notes:
sideshowbarker
2024-07-18 03:27:19 +09:00
Author: https://github.com/awesomekling
Commit: 0ee457dfdf
16 changed files with 8 additions and 43 deletions
|
@ -51,7 +51,6 @@ public:
|
|||
// ^EventTarget
|
||||
virtual void ref_event_target() final { ref(); }
|
||||
virtual void unref_event_target() final { unref(); }
|
||||
virtual bool dispatch_event(NonnullRefPtr<Event>) final;
|
||||
virtual JS::Object* create_wrapper(JS::GlobalObject&) override;
|
||||
|
||||
virtual ~Node();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue