mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:08:13 +00:00
LibWeb: Make HTML::Window::page() return a Page&
This commit is contained in:
parent
7c95ebc302
commit
9793d69d4f
10 changed files with 40 additions and 83 deletions
|
@ -77,8 +77,8 @@ public:
|
|||
// ^JS::Object
|
||||
virtual JS::ThrowCompletionOr<bool> internal_set_prototype_of(JS::Object* prototype) override;
|
||||
|
||||
Page* page();
|
||||
Page const* page() const;
|
||||
Page& page();
|
||||
Page const& page() const;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/window-object.html#concept-document-window
|
||||
DOM::Document const& associated_document() const { return *m_associated_document; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue