mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
LibWeb: Respect media attribute of style tag
This commit is contained in:
parent
bd4bb4fd51
commit
93238edf8f
7 changed files with 44 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue