mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 00:57:43 +00:00
LibWeb: Make MediaList GC-allocated
This commit is contained in:
parent
0176d42f49
commit
cfdb8f2a8e
9 changed files with 58 additions and 35 deletions
|
@ -2648,7 +2648,7 @@ CSSRule* Parser::convert_to_rule(NonnullRefPtr<Rule> rule)
|
|||
child_rules.append(child_rule);
|
||||
}
|
||||
auto* rule_list = CSSRuleList::create(m_context.window_object(), move(child_rules));
|
||||
return CSSMediaRule::create(m_context.window_object(), MediaList::create(move(media_query_list)), *rule_list);
|
||||
return CSSMediaRule::create(m_context.window_object(), *MediaList::create(m_context.window_object(), move(media_query_list)), *rule_list);
|
||||
|
||||
} else if (rule->at_rule_name().equals_ignoring_case("supports"sv)) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue