mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
LibWeb: Make SessionHistoryEntry GC-allocated
These will need to float around more than they're currently able to. Put them on the GC heap to prepare for that. Co-authored-by: Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
This commit is contained in:
parent
32557be930
commit
3b0e5a87db
7 changed files with 60 additions and 33 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <AK/URL.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibJS/Heap/GCPtr.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/PolicyContainers.h>
|
||||
|
@ -26,7 +27,11 @@ enum class ScrollRestorationMode {
|
|||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/history.html#session-history-entry
|
||||
struct SessionHistoryEntry {
|
||||
struct SessionHistoryEntry final : public JS::Cell {
|
||||
JS_CELL(SessionHistoryEntry, JS::Cell);
|
||||
|
||||
void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
// URL, a URL
|
||||
AK::URL url;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue