mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Move formatter for Percentage into Percentage.h
This commit is contained in:
parent
90948405fc
commit
f15153ea86
|
|
@ -47,3 +47,11 @@ private:
|
|||
};
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct AK::Formatter<Web::CSS::Percentage> : Formatter<StringView> {
|
||||
ErrorOr<void> format(FormatBuilder& builder, Web::CSS::Percentage const& percentage)
|
||||
{
|
||||
return Formatter<StringView>::format(builder, percentage.to_string());
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -232,14 +232,6 @@ public:
|
|||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct AK::Formatter<Web::CSS::Percentage> : Formatter<StringView> {
|
||||
ErrorOr<void> format(FormatBuilder& builder, Web::CSS::Percentage const& percentage)
|
||||
{
|
||||
return Formatter<StringView>::format(builder, percentage.to_string());
|
||||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
struct AK::Formatter<Web::CSS::AnglePercentage> : Formatter<StringView> {
|
||||
ErrorOr<void> format(FormatBuilder& builder, Web::CSS::AnglePercentage const& angle_percentage)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user