diff options
Diffstat (limited to 'Libraries/LibWeb/DOM/Document.cpp')
-rw-r--r-- | Libraries/LibWeb/DOM/Document.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp index c7b00c14ee..358f4b80be 100644 --- a/Libraries/LibWeb/DOM/Document.cpp +++ b/Libraries/LibWeb/DOM/Document.cpp @@ -621,4 +621,18 @@ const Page* Document::page() const return m_frame ? m_frame->page() : nullptr; } +EventTarget* Document::get_parent(const Event& event) +{ + if (event.type() == "load") + return nullptr; + + return &window(); +} + +void Document::completely_finish_loading() +{ + // FIXME: This needs to handle iframes. + dispatch_event(DOM::Event::create("load")); +} + } |