mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +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:
@@ -41,11 +41,6 @@ void Performance::unref_event_target()
|
||||
m_window.unref();
|
||||
}
|
||||
|
||||
bool Performance::dispatch_event(NonnullRefPtr<DOM::Event> event)
|
||||
{
|
||||
return DOM::EventDispatcher::dispatch(*this, event);
|
||||
}
|
||||
|
||||
JS::Object* Performance::create_wrapper(JS::GlobalObject& global_object)
|
||||
{
|
||||
return Bindings::wrap(global_object, *this);
|
||||
|
||||
Reference in New Issue
Block a user