mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:37:45 +00:00
LibWeb: Use String for getting/setting MediaQueryList media
This commit is contained in:
parent
6dbc3044bd
commit
ef1e942f3e
6 changed files with 7 additions and 7 deletions
|
@ -2181,7 +2181,7 @@ void Document::evaluate_media_queries_and_report_changes()
|
|||
|
||||
if (did_match != now_matches) {
|
||||
CSS::MediaQueryListEventInit init;
|
||||
init.media = String::from_deprecated_string(media_query_list->media()).release_value_but_fixme_should_propagate_errors();
|
||||
init.media = media_query_list->media();
|
||||
init.matches = now_matches;
|
||||
auto event = CSS::MediaQueryListEvent::create(realm(), HTML::EventNames::change, init);
|
||||
event->set_is_trusted(true);
|
||||
|
|
|
@ -95,7 +95,7 @@ void StyleElementUtils::create_a_css_style_sheet(DOM::Document& document, Deprec
|
|||
sheet.set_owner_css_rule(owner_rule);
|
||||
sheet.set_owner_node(owner_node);
|
||||
sheet.set_type(MUST(String::from_deprecated_string(type)));
|
||||
sheet.set_media(move(media));
|
||||
sheet.set_media(MUST(String::from_deprecated_string(media)));
|
||||
sheet.set_title(MUST(String::from_deprecated_string(title)));
|
||||
sheet.set_alternate(alternate);
|
||||
sheet.set_origin_clean(origin_clean);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue