mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
LibWeb: Visit constructor callback in CustomElementDefinition
This commit is contained in:
parent
3b4230e0b0
commit
bf8bbea209
2 changed files with 3 additions and 2 deletions
|
@ -11,6 +11,7 @@ namespace Web::HTML {
|
||||||
void CustomElementDefinition::visit_edges(Visitor& visitor)
|
void CustomElementDefinition::visit_edges(Visitor& visitor)
|
||||||
{
|
{
|
||||||
Base::visit_edges(visitor);
|
Base::visit_edges(visitor);
|
||||||
|
visitor.visit(m_constructor);
|
||||||
for (auto& callback : m_lifecycle_callbacks)
|
for (auto& callback : m_lifecycle_callbacks)
|
||||||
visitor.visit(callback.value);
|
visitor.visit(callback.value);
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ private:
|
||||||
CustomElementDefinition(String const& name, String const& local_name, WebIDL::CallbackType& constructor, Vector<String>&& observed_attributes, LifecycleCallbacksStorage&& lifecycle_callbacks, bool form_associated, bool disable_internals, bool disable_shadow)
|
CustomElementDefinition(String const& name, String const& local_name, WebIDL::CallbackType& constructor, Vector<String>&& observed_attributes, LifecycleCallbacksStorage&& lifecycle_callbacks, bool form_associated, bool disable_internals, bool disable_shadow)
|
||||||
: m_name(name)
|
: m_name(name)
|
||||||
, m_local_name(local_name)
|
, m_local_name(local_name)
|
||||||
, m_constructor(JS::make_handle(constructor))
|
, m_constructor(constructor)
|
||||||
, m_observed_attributes(move(observed_attributes))
|
, m_observed_attributes(move(observed_attributes))
|
||||||
, m_lifecycle_callbacks(move(lifecycle_callbacks))
|
, m_lifecycle_callbacks(move(lifecycle_callbacks))
|
||||||
, m_form_associated(form_associated)
|
, m_form_associated(form_associated)
|
||||||
|
@ -74,7 +74,7 @@ private:
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#concept-custom-element-definition-constructor
|
// https://html.spec.whatwg.org/multipage/custom-elements.html#concept-custom-element-definition-constructor
|
||||||
// A Web IDL CustomElementConstructor callback function type value wrapping the custom element constructor
|
// A Web IDL CustomElementConstructor callback function type value wrapping the custom element constructor
|
||||||
JS::Handle<WebIDL::CallbackType> m_constructor;
|
JS::NonnullGCPtr<WebIDL::CallbackType> m_constructor;
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#concept-custom-element-definition-observed-attributes
|
// https://html.spec.whatwg.org/multipage/custom-elements.html#concept-custom-element-definition-observed-attributes
|
||||||
// A list of observed attributes
|
// A list of observed attributes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue