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

LibWeb: Port CSSStyleSheet interface from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-09-03 14:19:49 +12:00 committed by Tim Flynn
parent d93e916d0c
commit da637a527d
5 changed files with 22 additions and 16 deletions

View file

@ -25,7 +25,7 @@ CSSStyleSheet::CSSStyleSheet(JS::Realm& realm, CSSRuleList& rules, MediaList& me
, m_rules(&rules)
{
if (location.has_value())
set_location(location->to_deprecated_string());
set_location(MUST(location->to_string()));
for (auto& rule : *m_rules)
rule->set_parent_style_sheet(this);