mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:17:35 +00:00
LibWeb: Add GC finalizer for DOM::Node
Now that the layout tree is also GC-allocated, we can't be messing with it from the DOM::Node destructor. Move everything to a GC finalizer so we know it runs before the GC sweep phase.
This commit is contained in:
parent
07a36c8f80
commit
c877eb47a2
2 changed files with 4 additions and 1 deletions
|
@ -622,6 +622,7 @@ protected:
|
|||
Node(Document&, NodeType);
|
||||
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
virtual void finalize() override;
|
||||
|
||||
JS::GCPtr<Document> m_document;
|
||||
JS::GCPtr<Layout::Node> m_layout_node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue