mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
With the introduction of shadow realms, there will be two different possible host defined objects. For clarity, rename the existing host defined object to PrincipalHostDefined.
25 lines
600 B
C++
25 lines
600 B
C++
/*
|
|
* Copyright (c) 2022, Andrew Kaster <akaster@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibJS/Heap/Cell.h>
|
|
#include <LibJS/Runtime/Realm.h>
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
|
#include <LibWeb/Bindings/PrincipalHostDefined.h>
|
|
#include <LibWeb/HTML/Scripting/Environments.h>
|
|
#include <LibWeb/Page/Page.h>
|
|
|
|
namespace Web::Bindings {
|
|
|
|
void PrincipalHostDefined::visit_edges(JS::Cell::Visitor& visitor)
|
|
{
|
|
JS::Realm::HostDefined::visit_edges(visitor);
|
|
visitor.visit(environment_settings_object);
|
|
visitor.visit(intrinsics);
|
|
visitor.visit(page);
|
|
}
|
|
|
|
}
|