mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +00:00
LibWeb: Let Document have a direct GCPtr to its containing Web::Page
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
This commit is contained in:
parent
b2b5297997
commit
70193c0009
12 changed files with 35 additions and 10 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <LibWeb/Bindings/HostDefined.h>
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/HTML/Scripting/Environments.h>
|
||||
#include <LibWeb/Page/Page.h>
|
||||
|
||||
namespace Web::Bindings {
|
||||
|
||||
|
@ -17,6 +18,7 @@ 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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue