diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleSheet.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleSheet.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleSheet.cpp b/Userland/Libraries/LibWeb/CSS/StyleSheet.cpp index e737df9429..1104f861d7 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleSheet.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleSheet.cpp @@ -11,8 +11,9 @@ namespace Web::CSS { -StyleSheet::StyleSheet(JS::Realm& realm) +StyleSheet::StyleSheet(JS::Realm& realm, MediaList& media) : PlatformObject(realm) + , m_media(media) { } @@ -21,6 +22,7 @@ void StyleSheet::visit_edges(Cell::Visitor& visitor) Base::visit_edges(visitor); visitor.visit(m_owner_node); visitor.visit(m_parent_style_sheet); + visitor.visit(m_media); } void StyleSheet::set_owner_node(DOM::Element* element) |