diff --git a/Libraries/LibWeb/CSS/Percentage.h b/Libraries/LibWeb/CSS/Percentage.h index fa2a88c1a57..659af4efaef 100644 --- a/Libraries/LibWeb/CSS/Percentage.h +++ b/Libraries/LibWeb/CSS/Percentage.h @@ -47,3 +47,11 @@ private: }; } + +template<> +struct AK::Formatter : Formatter { + ErrorOr format(FormatBuilder& builder, Web::CSS::Percentage const& percentage) + { + return Formatter::format(builder, percentage.to_string()); + } +}; diff --git a/Libraries/LibWeb/CSS/PercentageOr.h b/Libraries/LibWeb/CSS/PercentageOr.h index 7c8899aef5d..915dbaa29d6 100644 --- a/Libraries/LibWeb/CSS/PercentageOr.h +++ b/Libraries/LibWeb/CSS/PercentageOr.h @@ -232,14 +232,6 @@ public: } -template<> -struct AK::Formatter : Formatter { - ErrorOr format(FormatBuilder& builder, Web::CSS::Percentage const& percentage) - { - return Formatter::format(builder, percentage.to_string()); - } -}; - template<> struct AK::Formatter : Formatter { ErrorOr format(FormatBuilder& builder, Web::CSS::AnglePercentage const& angle_percentage)