summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Document.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-09-02 13:50:24 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-06 00:27:09 +0200
commit16fbb91aa1cbf89a037f9abd032b9040a09c2cd5 (patch)
tree0e74df811862c8c4cb51ea22eb0702fc682ab143 /Userland/Libraries/LibWeb/DOM/Document.h
parentabfb73f2e716017c11fd0513e63e742cec64cecf (diff)
downloadserenity-16fbb91aa1cbf89a037f9abd032b9040a09c2cd5.zip
LibWeb: Make History GC-allocated
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Document.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Document.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h
index 36efd422ca..6f86126f15 100644
--- a/Userland/Libraries/LibWeb/DOM/Document.h
+++ b/Userland/Libraries/LibWeb/DOM/Document.h
@@ -298,7 +298,7 @@ public:
bool is_fully_active() const;
bool is_active() const;
- NonnullRefPtr<HTML::History> history() const { return m_history; }
+ JS::NonnullGCPtr<HTML::History> history();
Bindings::LocationObject* location();
@@ -433,7 +433,7 @@ private:
// https://html.spec.whatwg.org/multipage/semantics.html#script-blocking-style-sheet-counter
u32 m_script_blocking_style_sheet_counter { 0 };
- NonnullRefPtr<HTML::History> m_history;
+ JS::GCPtr<HTML::History> m_history;
size_t m_number_of_things_delaying_the_load_event { 0 };