mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
LibWeb+LibJS: Make the EventTarget hierarchy (incl. DOM) GC-allocated
This is a monster patch that turns all EventTargets into GC-allocated PlatformObjects. Their C++ wrapper classes are removed, and the LibJS garbage collector is now responsible for their lifetimes. There's a fair amount of hacks and band-aids in this patch, and we'll have a lot of cleanup to do after this.
This commit is contained in:
@@ -15,13 +15,14 @@ namespace Web::HTML {
|
||||
class HTMLAreaElement final
|
||||
: public HTMLElement
|
||||
, public HTMLHyperlinkElementUtils {
|
||||
public:
|
||||
using WrapperType = Bindings::HTMLAreaElementWrapper;
|
||||
WEB_PLATFORM_OBJECT(HTMLAreaElement, HTMLElement);
|
||||
|
||||
HTMLAreaElement(DOM::Document&, DOM::QualifiedName);
|
||||
public:
|
||||
virtual ~HTMLAreaElement() override;
|
||||
|
||||
private:
|
||||
HTMLAreaElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
// ^DOM::Element
|
||||
virtual void parse_attribute(FlyString const& name, String const& value) override;
|
||||
|
||||
@@ -39,3 +40,5 @@ private:
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
WRAPPER_HACK(HTMLAreaElement, Web::HTML)
|
||||
|
||||
Reference in New Issue
Block a user