mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Serialize Frequency according to spec
This commit is contained in:
@@ -33,7 +33,7 @@ Frequency Frequency::percentage_of(Percentage const& percentage) const
|
||||
|
||||
ErrorOr<String> Frequency::to_string() const
|
||||
{
|
||||
return String::formatted("{}{}", m_value, unit_name());
|
||||
return String::formatted("{}hz", to_hertz());
|
||||
}
|
||||
|
||||
float Frequency::to_hertz() const
|
||||
|
||||
Reference in New Issue
Block a user