mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +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
@@ -40,8 +40,8 @@ struct SimilarOriginWindowAgent : public Agent {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/custom-elements.html#current-element-queue
|
||||
// A similar-origin window agent's current element queue is the element queue at the top of its custom element reactions stack.
|
||||
Vector<GC::Root<DOM::Element>>& current_element_queue() { return custom_element_reactions_stack.element_queue_stack.last(); }
|
||||
Vector<GC::Root<DOM::Element>> const& current_element_queue() const { return custom_element_reactions_stack.element_queue_stack.last(); }
|
||||
auto& current_element_queue() { return custom_element_reactions_stack.element_queue_stack.last(); }
|
||||
auto const& current_element_queue() const { return custom_element_reactions_stack.element_queue_stack.last(); }
|
||||
|
||||
private:
|
||||
SimilarOriginWindowAgent(GC::Heap&, CanBlock);
|
||||
|
||||
Reference in New Issue
Block a user