mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibWeb: Make History GC-allocated
This commit is contained in:
parent
abfb73f2e7
commit
16fbb91aa1
Notes:
sideshowbarker
2024-07-17 07:27:12 +09:00
Author: https://github.com/awesomekling
Commit: 16fbb91aa1
Pull-request: https://github.com/SerenityOS/serenity/pull/14816
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg ✅
7 changed files with 40 additions and 25 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue