From 7a4854732aa1d7e624bff1b54fa183667e7248b8 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 2 May 2025 11:13:35 +0100 Subject: [PATCH] LibWeb/CSS: Make CSS::URL formattable --- Libraries/LibWeb/CSS/URL.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Libraries/LibWeb/CSS/URL.h b/Libraries/LibWeb/CSS/URL.h index 9380ad2e226..e859e61953d 100644 --- a/Libraries/LibWeb/CSS/URL.h +++ b/Libraries/LibWeb/CSS/URL.h @@ -25,3 +25,11 @@ private: }; } + +template<> +struct AK::Formatter : AK::Formatter { + ErrorOr format(FormatBuilder& builder, Web::CSS::URL const& value) + { + return Formatter::format(builder, value.to_string()); + } +};