mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 11:04:59 +00:00

With this change, Document now always has a Web::Page. This means we no longer rely on the breakable link between Document and BrowsingContext to find a relevant Web::Page. Fixes #22290
24 lines
582 B
C++
24 lines
582 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/HostDefined.h>
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
|
#include <LibWeb/HTML/Scripting/Environments.h>
|
|
#include <LibWeb/Page/Page.h>
|
|
|
|
namespace Web::Bindings {
|
|
|
|
void HostDefined::visit_edges(JS::Cell::Visitor& visitor)
|
|
{
|
|
JS::Realm::HostDefined::visit_edges(visitor);
|
|
visitor.visit(environment_settings_object);
|
|
visitor.visit(intrinsics);
|
|
visitor.visit(page);
|
|
}
|
|
|
|
}
|