diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/Length.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/Length.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/Length.h b/Userland/Libraries/LibWeb/CSS/Length.h index db84635bd3..ed7335c6a2 100644 --- a/Userland/Libraries/LibWeb/CSS/Length.h +++ b/Userland/Libraries/LibWeb/CSS/Length.h @@ -147,3 +147,11 @@ private: }; } + +template<> +struct AK::Formatter<Web::CSS::Length> : Formatter<StringView> { + ErrorOr<void> format(FormatBuilder& builder, Web::CSS::Length const& length) + { + return Formatter<StringView>::format(builder, length.to_string()); + } +}; |