From 374b6cdffde5daba53f3dcac14644f913b1b1595 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 1 Dec 2023 16:55:34 +0000 Subject: [PATCH] LibWeb: Return String from CSSImportRule::href() --- Userland/Libraries/LibWeb/CSS/CSSImportRule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/CSSImportRule.h b/Userland/Libraries/LibWeb/CSS/CSSImportRule.h index 8375f9aa5c..50e44b51b9 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSImportRule.h +++ b/Userland/Libraries/LibWeb/CSS/CSSImportRule.h @@ -29,7 +29,7 @@ public: AK::URL const& url() const { return m_url; } // FIXME: This should return only the specified part of the url. eg, "stuff/foo.css", not "https://example.com/stuff/foo.css". - DeprecatedString href() const { return m_url.to_deprecated_string(); } + String href() const { return MUST(m_url.to_string()); } CSSStyleSheet* loaded_style_sheet() { return m_style_sheet; } CSSStyleSheet const* loaded_style_sheet() const { return m_style_sheet; }