mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:27:34 +00:00
LibWeb: Make StyleSheet mark its owner node
The garbage collector will take care of cycles.
This commit is contained in:
parent
36085676d2
commit
5724a04553
2 changed files with 4 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue