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

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

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