LibWeb: Visit custom element definitions in CustomElementRegistry

This commit is contained in:
Aliaksandr Kalenik
2024-03-11 19:37:21 +01:00
committed by Alexander Kalenik
parent bf8bbea209
commit 90112468ac
Notes: sideshowbarker 2024-07-17 00:16:31 +09:00
2 changed files with 15 additions and 7 deletions

View File

@@ -36,9 +36,10 @@ private:
CustomElementRegistry(JS::Realm&);
virtual void initialize(JS::Realm&) override;
virtual void visit_edges(Visitor&) override;
// Every CustomElementRegistry has a set of custom element definitions, initially empty. In general, algorithms in this specification look up elements in the registry by any of name, local name, or constructor.
Vector<JS::Handle<CustomElementDefinition>> m_custom_element_definitions;
Vector<JS::NonnullGCPtr<CustomElementDefinition>> m_custom_element_definitions;
// https://html.spec.whatwg.org/multipage/custom-elements.html#element-definition-is-running
// Every CustomElementRegistry also has an element definition is running flag which is used to prevent reentrant invocations of element definition. It is initially unset.