mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 17:27:34 +00:00
LibWeb: Add DOM::Window::page()
This helps us to get from a Window to the containing Page, without clients having to go through Document.
This commit is contained in:
parent
84fcf879f9
commit
d392349b6e
4 changed files with 18 additions and 5 deletions
|
@ -33,6 +33,9 @@ public:
|
|||
virtual bool dispatch_event(NonnullRefPtr<Event>) override;
|
||||
virtual JS::Object* create_wrapper(JS::GlobalObject&) override;
|
||||
|
||||
Page* page();
|
||||
Page const* page() const;
|
||||
|
||||
const Document& document() const { return m_document; }
|
||||
Document& document() { return m_document; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue