mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +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:
parent
84eecbb10e
commit
a71eaefdf6
11 changed files with 108 additions and 64 deletions
|
@ -45,7 +45,8 @@ public:
|
|||
|
||||
Vector<JS::Handle<DOMEventListener>> event_listener_list();
|
||||
|
||||
Function<void(Event const&)> activation_behavior;
|
||||
virtual bool has_activation_behavior() const;
|
||||
virtual void activation_behavior(Event const&);
|
||||
|
||||
// NOTE: These only exist for checkbox and radio input elements.
|
||||
virtual void legacy_pre_activation_behavior() { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue