mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
LibWeb: Make serializing basic CSS types infallible
This commit is contained in:
parent
b5893ee115
commit
6bee81cfb6
38 changed files with 128 additions and 121 deletions
|
@ -26,9 +26,9 @@ Angle Angle::percentage_of(Percentage const& percentage) const
|
|||
return Angle { percentage.as_fraction() * m_value, m_type };
|
||||
}
|
||||
|
||||
ErrorOr<String> Angle::to_string() const
|
||||
String Angle::to_string() const
|
||||
{
|
||||
return String::formatted("{}deg", to_degrees());
|
||||
return MUST(String::formatted("{}deg", to_degrees()));
|
||||
}
|
||||
|
||||
double Angle::to_degrees() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue