1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:28:13 +00:00

LibWeb: Serialize Angle according to spec

This commit is contained in:
stelar7 2023-05-27 22:27:22 +02:00 committed by Andreas Kling
parent e72b7c5de2
commit 5dc82db0cb

View file

@ -34,7 +34,7 @@ Angle Angle::percentage_of(Percentage const& percentage) const
ErrorOr<String> Angle::to_string() const
{
return String::formatted("{}{}", m_value, unit_name());
return String::formatted("{}deg", to_degrees());
}
float Angle::to_degrees() const