summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/History.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/History.h')
-rw-r--r--Userland/Libraries/LibWeb/HTML/History.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/History.h b/Userland/Libraries/LibWeb/HTML/History.h
index b7d22ef12c..23fe7001e6 100644
--- a/Userland/Libraries/LibWeb/HTML/History.h
+++ b/Userland/Libraries/LibWeb/HTML/History.h
@@ -7,7 +7,6 @@
#pragma once
-#include <LibJS/Heap/Handle.h>
#include <LibWeb/Bindings/PlatformObject.h>
#include <LibWeb/WebIDL/ExceptionOr.h>
@@ -17,7 +16,7 @@ class History final : public Bindings::PlatformObject {
WEB_PLATFORM_OBJECT(History, Bindings::PlatformObject);
public:
- static JS::NonnullGCPtr<History> create(HTML::Window&, DOM::Document&);
+ static JS::NonnullGCPtr<History> create(JS::Realm&, DOM::Document&);
virtual ~History() override;
@@ -25,7 +24,7 @@ public:
WebIDL::ExceptionOr<void> replace_state(JS::Value data, String const& unused, String const& url);
private:
- explicit History(HTML::Window&, DOM::Document&);
+ History(JS::Realm&, DOM::Document&);
virtual void visit_edges(Cell::Visitor&) override;