mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 00:56:39 +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
Notes:
sideshowbarker
2024-07-17 07:26:20 +09:00
Author: https://github.com/awesomekling
Commit: 5724a04553
Pull-request: https://github.com/SerenityOS/serenity/pull/14816
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/linusg ✅
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