1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

LibWeb: Make TraversableNavigable store Page member as NonnullGCPtr

This commit is contained in:
Shannon Booth 2023-12-03 16:56:04 +13:00 committed by Andreas Kling
parent bf4c8f4a09
commit fd7be22653
4 changed files with 14 additions and 13 deletions

View file

@ -23,7 +23,7 @@ public:
JS::NonnullGCPtr<HTML::BrowsingContextGroup> browsing_context;
JS::NonnullGCPtr<DOM::Document> document;
};
static WebIDL::ExceptionOr<BrowsingContextGroupAndDocument> create_a_new_browsing_context_group_and_document(Page&);
static WebIDL::ExceptionOr<BrowsingContextGroupAndDocument> create_a_new_browsing_context_group_and_document(JS::NonnullGCPtr<Page>);
~BrowsingContextGroup();
@ -36,7 +36,7 @@ public:
void append(BrowsingContext&);
private:
explicit BrowsingContextGroup(Web::Page&);
explicit BrowsingContextGroup(JS::NonnullGCPtr<Web::Page>);
virtual void visit_edges(Cell::Visitor&) override;