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:
parent
9a19bdbfcf
commit
3c89286467
4 changed files with 117 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue