mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Use weak references in the custom elements reaction stack
This commit is contained in:
committed by
Andreas Kling
parent
aa9c478ee9
commit
9a5c648b2f
Notes:
github-actions[bot]
2025-12-25 19:23:29 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/9a5c648b2f7 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7230
@@ -21,11 +21,11 @@ struct CustomElementReactionsStack {
|
||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#element-queue
|
||||
// Each item in the stack is an element queue, which is initially empty as well. Each item in an element queue is an element.
|
||||
// (The elements are not necessarily custom yet, since this queue is used for upgrades as well.)
|
||||
Vector<Vector<GC::Root<DOM::Element>>> element_queue_stack;
|
||||
Vector<Vector<GC::Weak<DOM::Element>>> element_queue_stack;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#backup-element-queue
|
||||
// Each custom element reactions stack has an associated backup element queue, which an initially-empty element queue.
|
||||
Vector<GC::Root<DOM::Element>> backup_element_queue;
|
||||
Vector<GC::Weak<DOM::Element>> backup_element_queue;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#processing-the-backup-element-queue
|
||||
// To prevent reentrancy when processing the backup element queue, each custom element reactions stack also has a processing the backup element queue flag, initially unset.
|
||||
|
||||
Reference in New Issue
Block a user