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

LibWeb: Rename DOM::Window::document() => associated_document()

Match the spec nomenclature.
This commit is contained in:
Andreas Kling 2021-09-09 13:55:31 +02:00
parent 8f72729f0e
commit 90cdeebfb3
16 changed files with 44 additions and 42 deletions

View file

@ -36,8 +36,8 @@ public:
Page* page();
Page const* page() const;
Document const& document() const { return m_document; }
Document& document() { return m_document; }
Document const& associated_document() const { return m_associated_document; }
Document& associated_document() { return m_associated_document; }
void alert(String const&);
bool confirm(String const&);
@ -75,7 +75,9 @@ public:
private:
explicit Window(Document&);
Document& m_document;
// https://html.spec.whatwg.org/multipage/window-object.html#concept-document-window
Document& m_associated_document;
WeakPtr<Bindings::WindowObject> m_wrapper;
IDAllocator m_timer_id_allocator;