mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibWeb: Make event dispatching spec-compliant
Specification: https://dom.spec.whatwg.org/#concept-event-dispatch This also introduces shadow roots due to it being a requirement of the event dispatcher. However, it does not introduce the full shadow DOM, that can be left for future work. This changes some event dispatches which require certain attributes to be initialised to a value.
This commit is contained in:
@@ -60,9 +60,9 @@ void Performance::unref_event_target()
|
||||
m_window.unref();
|
||||
}
|
||||
|
||||
void Performance::dispatch_event(NonnullRefPtr<DOM::Event> event)
|
||||
bool Performance::dispatch_event(NonnullRefPtr<DOM::Event> event)
|
||||
{
|
||||
DOM::EventDispatcher::dispatch(*this, event);
|
||||
return DOM::EventDispatcher::dispatch(*this, event);
|
||||
}
|
||||
|
||||
Bindings::EventTargetWrapper* Performance::create_wrapper(JS::GlobalObject& global_object)
|
||||
|
||||
Reference in New Issue
Block a user