mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
LibJS+LibWeb: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr
This commit is contained in:
parent
1df3652e27
commit
7c0c1c8f49
214 changed files with 825 additions and 827 deletions
|
@ -36,12 +36,12 @@ public:
|
|||
|
||||
MediaList* media() const
|
||||
{
|
||||
return &m_media;
|
||||
return m_media;
|
||||
}
|
||||
|
||||
void set_media(DeprecatedString media)
|
||||
{
|
||||
m_media.set_media_text(media);
|
||||
m_media->set_media_text(media);
|
||||
}
|
||||
|
||||
bool is_alternate() const { return m_alternate; }
|
||||
|
@ -59,7 +59,7 @@ protected:
|
|||
explicit StyleSheet(JS::Realm&, MediaList& media);
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
MediaList& m_media;
|
||||
JS::NonnullGCPtr<MediaList> m_media;
|
||||
|
||||
private:
|
||||
JS::GCPtr<DOM::Element> m_owner_node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue