mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 12:17:52 +00:00
LibWeb: Move formatter for Percentage
into Percentage.h
This commit is contained in:
parent
90948405fc
commit
f15153ea86
Notes:
github-actions[bot]
2025-08-11 16:11:32 +00:00
Author: https://github.com/Calme1709
Commit: f15153ea86
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5734
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/tcl3
2 changed files with 8 additions and 8 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue