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

LibWeb: Implement creation of fresh top-level traversables

Co-authored-by: Andreas Kling <kling@serenityos.org>
This commit is contained in:
Aliaksandr Kalenik 2022-12-17 14:26:48 +01:00 committed by Andreas Kling
parent 9a19bdbfcf
commit 3c89286467
4 changed files with 117 additions and 0 deletions

View file

@ -19,6 +19,13 @@ class BrowsingContextGroup final : public JS::Cell {
public:
static JS::NonnullGCPtr<BrowsingContextGroup> create_a_new_browsing_context_group(Page&);
struct BrowsingContextGroupAndDocument {
JS::NonnullGCPtr<HTML::BrowsingContextGroup> browsing_context;
JS::NonnullGCPtr<DOM::Document> document;
};
static WebIDL::ExceptionOr<BrowsingContextGroupAndDocument> create_a_new_browsing_context_group_and_document(Page&);
~BrowsingContextGroup();
Page* page() { return m_page; }