summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML
diff options
context:
space:
mode:
authorAliaksandr Kalenik <kalenik.aliaksandr@gmail.com>2023-04-23 19:39:12 +0300
committerAndreas Kling <kling@serenityos.org>2023-04-24 07:57:15 +0200
commit3225c391918ed871d031b760a9372d62d130940b (patch)
treef198ff7fcde5b3b9fb8275d932a2e4f3187349d1 /Userland/Libraries/LibWeb/HTML
parent32e2207b553fb1682d21dda1690766f8e93b75fb (diff)
downloadserenity-3225c391918ed871d031b760a9372d62d130940b.zip
LibWeb: Implement Document::make_active()
Implementation of "make active" algorithm from the spec for Document. Co-authored-by: Andreas Kling <kling@serenityos.org>
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML')
-rw-r--r--Userland/Libraries/LibWeb/HTML/WindowProxy.cpp4
-rw-r--r--Userland/Libraries/LibWeb/HTML/WindowProxy.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/WindowProxy.cpp b/Userland/Libraries/LibWeb/HTML/WindowProxy.cpp
index ea854f1790..fdcf39d01a 100644
--- a/Userland/Libraries/LibWeb/HTML/WindowProxy.cpp
+++ b/Userland/Libraries/LibWeb/HTML/WindowProxy.cpp
@@ -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
diff --git a/Userland/Libraries/LibWeb/HTML/WindowProxy.h b/Userland/Libraries/LibWeb/HTML/WindowProxy.h
index 7cccafb354..5c32c7b63e 100644
--- a/Userland/Libraries/LibWeb/HTML/WindowProxy.h
+++ b/Userland/Libraries/LibWeb/HTML/WindowProxy.h
@@ -32,7 +32,7 @@ public:
virtual JS::ThrowCompletionOr<JS::MarkedVector<JS::Value>> internal_own_property_keys() const override;
JS::GCPtr<Window> window() const { return m_window; }
- void set_window(Badge<BrowsingContext>, JS::NonnullGCPtr<Window>);
+ void set_window(JS::NonnullGCPtr<Window>);
JS::NonnullGCPtr<BrowsingContext> associated_browsing_context() const;