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:
Jelle Raaijmakers
2025-11-24 10:05:36 +01:00
committed by Sam Atkins
parent 4cca341315
commit c0939725a2
Notes: github-actions[bot] 2025-11-24 12:46:33 +00:00
2 changed files with 12 additions and 8 deletions

View File

@@ -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)
{
}
}