mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 09:57: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
|
@ -25,9 +25,9 @@ Frequency Frequency::percentage_of(Percentage const& percentage) const
|
|||
return Frequency { percentage.as_fraction() * m_value, m_type };
|
||||
}
|
||||
|
||||
ErrorOr<String> Frequency::to_string() const
|
||||
String Frequency::to_string() const
|
||||
{
|
||||
return String::formatted("{}hz", to_hertz());
|
||||
return MUST(String::formatted("{}hz", to_hertz()));
|
||||
}
|
||||
|
||||
double Frequency::to_hertz() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue