1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +00:00

LibWeb: Make EventTarget::activation_behavior a virtual function

(Instead of using an AK::Function on EventTarget). This shaves 48 bytes
off of every EventTarget instance.
This commit is contained in:
Andreas Kling 2023-11-18 10:48:09 +01:00
parent 84eecbb10e
commit a71eaefdf6
11 changed files with 108 additions and 64 deletions

View file

@ -816,4 +816,13 @@ bool EventTarget::has_event_listeners() const
return !m_event_listener_list.is_empty();
}
bool EventTarget::has_activation_behavior() const
{
return false;
}
void EventTarget::activation_behavior(Event const&)
{
}
}