mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
LibWeb: Change agent's signal_slots into a GC::RootVector
As part of this, also move the constructor out of line so we don't unnecessarily add transitive includes.
This commit is contained in:
committed by
Sam Atkins
parent
4cca341315
commit
c0939725a2
Notes:
github-actions[bot]
2025-11-24 12:46:33 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/c0939725a2d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6917 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -1,10 +1,13 @@
|
||||
/*
|
||||
* Copyright (c) 2025, Shannon Booth <shannon@serenityos.org>
|
||||
* Copyright (c) 2025, Jelle Raaijmakers <jelle@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/Bindings/MainThreadVM.h>
|
||||
#include <LibWeb/DOM/MutationObserver.h>
|
||||
#include <LibWeb/HTML/HTMLSlotElement.h>
|
||||
#include <LibWeb/HTML/Scripting/Environments.h>
|
||||
#include <LibWeb/HTML/Scripting/SimilarOriginWindowAgent.h>
|
||||
#include <LibWeb/Platform/EventLoopPlugin.h>
|
||||
@@ -27,4 +30,11 @@ SimilarOriginWindowAgent& relevant_similar_origin_window_agent(JS::Object const&
|
||||
return as<SimilarOriginWindowAgent>(*relevant_realm(object).vm().agent());
|
||||
}
|
||||
|
||||
SimilarOriginWindowAgent::SimilarOriginWindowAgent(GC::Heap& heap, CanBlock can_block)
|
||||
: Agent(can_block)
|
||||
, pending_mutation_observers(heap)
|
||||
, signal_slots(heap)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user