mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Make StyleSheet::m_parent_style_sheet a WeakPtr
It's not safe for this to be a raw pointer, as the child can outlive the parent.
This commit is contained in:
parent
e8b85b13e2
commit
58b99df16d
Notes:
sideshowbarker
2024-07-17 23:06:41 +09:00
Author: https://github.com/awesomekling
Commit: 58b99df16d
3 changed files with 11 additions and 4 deletions
|
@ -18,7 +18,9 @@ namespace Web::CSS {
|
|||
|
||||
class CSSImportRule;
|
||||
|
||||
class CSSStyleSheet final : public StyleSheet {
|
||||
class CSSStyleSheet final
|
||||
: public StyleSheet
|
||||
, public Weakable<CSSStyleSheet> {
|
||||
public:
|
||||
using WrapperType = Bindings::CSSStyleSheetWrapper;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue