1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 08:15:07 +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

@ -369,7 +369,7 @@ void HTMLLinkElement::process_stylesheet_resource(bool success, Fetch::Infrastru
if (m_loaded_style_sheet) {
m_loaded_style_sheet->set_owner_node(this);
m_loaded_style_sheet->set_media(deprecated_attribute(HTML::AttributeNames::media));
m_loaded_style_sheet->set_media(attribute(HTML::AttributeNames::media).value_or({}));
document().style_sheets().add_sheet(*m_loaded_style_sheet);
} else {
dbgln_if(CSS_LOADER_DEBUG, "HTMLLinkElement: Failed to parse stylesheet: {}", resource()->url());