diff options
author | Andreas Kling <kling@serenityos.org> | 2022-08-08 14:12:01 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-06 00:27:09 +0200 |
commit | 8cda70c892c029478e9b87c909b752e000050b38 (patch) | |
tree | 6b0686ffeb8c79cf17887cd252bde228b49ab2fb /Userland/Libraries/LibWeb/HTML/GlobalEventHandlers.h | |
parent | 967a3e5a45af23f7922cffab9d77c0870ecbf3f2 (diff) | |
download | serenity-8cda70c892c029478e9b87c909b752e000050b38.zip |
LibWeb: Move event listeners, handlers and callbacks to the GC heap
This patch moves the following things to being GC-allocated:
- Bindings::CallbackType
- HTML::EventHandler
- DOM::IDLEventListener
- DOM::DOMEventListener
- DOM::NodeFilter
Note that we only use PlatformObject for things that might be exposed
to web content. Anything that is only used internally inherits directly
from JS::Cell instead, making them a bit more lightweight.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/GlobalEventHandlers.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/GlobalEventHandlers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/GlobalEventHandlers.h b/Userland/Libraries/LibWeb/HTML/GlobalEventHandlers.h index facdc97a23..11c99dddee 100644 --- a/Userland/Libraries/LibWeb/HTML/GlobalEventHandlers.h +++ b/Userland/Libraries/LibWeb/HTML/GlobalEventHandlers.h @@ -84,8 +84,8 @@ public: virtual ~GlobalEventHandlers(); #undef __ENUMERATE -#define __ENUMERATE(attribute_name, event_name) \ - void set_##attribute_name(Optional<Bindings::CallbackType>); \ +#define __ENUMERATE(attribute_name, event_name) \ + void set_##attribute_name(Bindings::CallbackType*); \ Bindings::CallbackType* attribute_name(); ENUMERATE_GLOBAL_EVENT_HANDLERS(__ENUMERATE) #undef __ENUMERATE |