LibWeb: Use weak references in the custom elements reaction stack

This commit is contained in:
Andreas Kling
2025-12-24 12:45:03 +01:00
committed by Andreas Kling
parent aa9c478ee9
commit 9a5c648b2f
Notes: github-actions[bot] 2025-12-25 19:23:29 +00:00
4 changed files with 8 additions and 6 deletions

View File

@@ -39,6 +39,6 @@ WEB_API JS::VM& main_thread_vm();
void queue_mutation_observer_microtask(DOM::Document const&);
WEB_API NonnullOwnPtr<JS::ExecutionContext> create_a_new_javascript_realm(JS::VM&, Function<JS::Object*(JS::Realm&)> create_global_object, Function<JS::Object*(JS::Realm&)> create_global_this_value);
WEB_API void invoke_custom_element_reactions(Vector<GC::Root<DOM::Element>>& element_queue);
WEB_API void invoke_custom_element_reactions(Vector<GC::Weak<DOM::Element>>& element_queue);
}