LibWeb: Move onfoo attribute handling to EventTarget

This logic was kept in the GlobalEventHandlers mixing for sharing
between Document and HTMLElement, but there are other interfaces who
need to support `onfoo` attribute event listeners as well.
This commit is contained in:
Andreas Kling 2021-09-19 01:38:14 +02:00
commit 824be02cb0
Notes: sideshowbarker 2024-07-18 03:41:26 +09:00
4 changed files with 55 additions and 55 deletions

View file

@ -90,9 +90,6 @@ public:
ENUMERATE_GLOBAL_EVENT_HANDLERS(__ENUMERATE)
#undef __ENUMERATE
void set_event_handler_attribute(const FlyString& name, HTML::EventHandler);
HTML::EventHandler get_event_handler_attribute(const FlyString& name);
protected:
virtual DOM::EventTarget& global_event_handlers_to_event_target() = 0;
};