mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibJS+LibWeb: Add missing JS_DEFINE_ALLOCATOR() for a bunch of classes
This commit is contained in:
parent
11c968fa1f
commit
f4fa37afd2
15 changed files with 25 additions and 3 deletions
|
@ -20,6 +20,7 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
JS_DEFINE_ALLOCATOR(CustomElementRegistry);
|
||||
JS_DEFINE_ALLOCATOR(CustomElementDefinition);
|
||||
|
||||
CustomElementRegistry::CustomElementRegistry(JS::Realm& realm)
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
JS_DEFINE_ALLOCATOR(HTMLDataListElement);
|
||||
|
||||
HTMLDataListElement::HTMLDataListElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
||||
: HTMLElement(document, move(qualified_name))
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
JS_DECLARE_ALLOCATOR(HTMLDocument);
|
||||
JS_DEFINE_ALLOCATOR(HTMLDocument);
|
||||
|
||||
HTMLDocument::HTMLDocument(JS::Realm& realm, AK::URL const& url)
|
||||
: Document(realm, url)
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
JS_DECLARE_ALLOCATOR(HTMLElement);
|
||||
JS_DEFINE_ALLOCATOR(HTMLElement);
|
||||
|
||||
HTMLElement::HTMLElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
||||
: Element(document, move(qualified_name))
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
JS_DEFINE_ALLOCATOR(HTMLTextAreaElement);
|
||||
|
||||
HTMLTextAreaElement::HTMLTextAreaElement(DOM::Document& document, DOM::QualifiedName qualified_name)
|
||||
: HTMLElement(document, move(qualified_name))
|
||||
{
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
JS_DEFINE_ALLOCATOR(TrackEvent);
|
||||
|
||||
JS::NonnullGCPtr<TrackEvent> TrackEvent::create(JS::Realm& realm, FlyString const& event_name, TrackEventInit event_init)
|
||||
{
|
||||
return realm.heap().allocate<TrackEvent>(realm, realm, event_name, move(event_init));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue