1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:47:35 +00:00

LibWeb: Use String for getting/setting MediaQueryList media

This commit is contained in:
Sam Atkins 2023-12-01 16:54:48 +00:00 committed by Andreas Kling
parent 6dbc3044bd
commit ef1e942f3e
6 changed files with 7 additions and 7 deletions

View file

@ -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);