1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:57:45 +00:00

LibWeb: Make StyleSheet mark its owner node

The garbage collector will take care of cycles.
This commit is contained in:
Andreas Kling 2022-09-03 15:44:44 +02:00
parent 36085676d2
commit 5724a04553
2 changed files with 4 additions and 7 deletions

View file

@ -50,9 +50,8 @@ protected:
virtual void visit_edges(Cell::Visitor&) override;
private:
WeakPtr<DOM::Element> m_owner_node;
CSSStyleSheet* m_parent_style_sheet { nullptr };
JS::GCPtr<DOM::Element> m_owner_node;
JS::GCPtr<CSSStyleSheet> m_parent_style_sheet;
String m_location;
String m_title;