1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibWeb: Implement Document::make_active()

Implementation of "make active" algorithm from the spec for Document.

Co-authored-by: Andreas Kling <kling@serenityos.org>
This commit is contained in:
Aliaksandr Kalenik 2023-04-23 19:39:12 +03:00 committed by Andreas Kling
parent 32e2207b55
commit 3225c39191
4 changed files with 25 additions and 3 deletions

View file

@ -256,9 +256,9 @@ void WindowProxy::visit_edges(JS::Cell::Visitor& visitor)
visitor.visit(m_window.ptr());
}
void WindowProxy::set_window(Badge<BrowsingContext>, JS::NonnullGCPtr<Window> window)
void WindowProxy::set_window(JS::NonnullGCPtr<Window> window)
{
m_window = window;
m_window = move(window);
}
JS::NonnullGCPtr<BrowsingContext> WindowProxy::associated_browsing_context() const