mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
LibWeb: Port MediaQueryListEvent to new String
This commit is contained in:
parent
97947fdffa
commit
d0f904dd4c
4 changed files with 11 additions and 10 deletions
|
@ -1801,7 +1801,7 @@ void Document::evaluate_media_queries_and_report_changes()
|
|||
|
||||
if (did_match != now_matches) {
|
||||
CSS::MediaQueryListEventInit init;
|
||||
init.media = media_query_list->media();
|
||||
init.media = String::from_deprecated_string(media_query_list->media()).release_value_but_fixme_should_propagate_errors();
|
||||
init.matches = now_matches;
|
||||
auto event = CSS::MediaQueryListEvent::create(realm(), HTML::EventNames::change, init).release_value_but_fixme_should_propagate_errors();
|
||||
event->set_is_trusted(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue