mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:27:35 +00:00
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.
This commit is contained in:
parent
967a3e5a45
commit
8cda70c892
57 changed files with 425 additions and 345 deletions
|
@ -2,9 +2,9 @@ include(libweb_generators)
|
|||
|
||||
set(SOURCES
|
||||
Bindings/AudioConstructor.cpp
|
||||
Bindings/CrossOriginAbstractOperations.cpp
|
||||
Bindings/CSSNamespace.cpp
|
||||
Bindings/EventListenerWrapper.cpp
|
||||
Bindings/CallbackType.cpp
|
||||
Bindings/CrossOriginAbstractOperations.cpp
|
||||
Bindings/EventTargetWrapperFactory.cpp
|
||||
Bindings/EventWrapperFactory.cpp
|
||||
Bindings/IDLAbstractOperations.cpp
|
||||
|
@ -97,12 +97,14 @@ set(SOURCES
|
|||
DOM/EventDispatcher.cpp
|
||||
DOM/EventTarget.cpp
|
||||
DOM/HTMLCollection.cpp
|
||||
DOM/IDLEventListener.cpp
|
||||
DOM/LiveNodeList.cpp
|
||||
DOM/MutationObserver.cpp
|
||||
DOM/MutationRecord.cpp
|
||||
DOM/MutationType.cpp
|
||||
DOM/NamedNodeMap.cpp
|
||||
DOM/Node.cpp
|
||||
DOM/NodeFilter.cpp
|
||||
DOM/NodeIterator.cpp
|
||||
DOM/NodeOperations.cpp
|
||||
DOM/ParentNode.cpp
|
||||
|
@ -146,6 +148,7 @@ set(SOURCES
|
|||
HTML/CrossOrigin/Reporting.cpp
|
||||
HTML/DOMParser.cpp
|
||||
HTML/DOMStringMap.cpp
|
||||
HTML/EventHandler.cpp
|
||||
HTML/EventLoop/EventLoop.cpp
|
||||
HTML/EventLoop/Task.cpp
|
||||
HTML/EventLoop/TaskQueue.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue