mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 01:51:03 +09: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.
24 lines
600 B
C++
24 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);
|
|
}
|
|
|
|
}
|