LibWeb: Return String from CSSImportRule::href()

This commit is contained in:
Sam Atkins 2023-12-01 16:55:34 +00:00 committed by Andreas Kling
parent ef1e942f3e
commit 374b6cdffd
Notes: sideshowbarker 2024-07-17 05:02:35 +09:00

View File

@ -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; }