1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +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:
Andreas Kling 2021-09-25 23:11:51 +02:00
parent 8dcf4e0346
commit 0ee457dfdf
16 changed files with 8 additions and 43 deletions

View file

@ -163,11 +163,6 @@ bool Node::is_link() const
return enclosing_link_element();
}
bool Node::dispatch_event(NonnullRefPtr<Event> event)
{
return EventDispatcher::dispatch(*this, event);
}
String Node::child_text_content() const
{
if (!is<ParentNode>(*this))