mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Port CSSStyleSheet interface from DeprecatedString to String
This commit is contained in:
Notes:
sideshowbarker
2024-07-16 20:44:03 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/da637a527d Pull-request: https://github.com/SerenityOS/serenity/pull/20926 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/trflynn89 ✅
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user