LibWeb/CSS: Make CSS::URL formattable

This commit is contained in:
Sam Atkins 2025-05-02 11:13:35 +01:00
commit 7a4854732a
Notes: github-actions[bot] 2025-05-03 11:03:06 +00:00

View file

@ -25,3 +25,11 @@ private:
};
}
template<>
struct AK::Formatter<Web::CSS::URL> : AK::Formatter<StringView> {
ErrorOr<void> format(FormatBuilder& builder, Web::CSS::URL const& value)
{
return Formatter<StringView>::format(builder, value.to_string());
}
};