mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +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,7 +26,7 @@ public:
|
|||
static Angle make_degrees(double);
|
||||
Angle percentage_of(Percentage const&) const;
|
||||
|
||||
ErrorOr<String> to_string() const;
|
||||
String to_string() const;
|
||||
|
||||
double to_degrees() const;
|
||||
double to_radians() const;
|
||||
|
@ -64,6 +64,6 @@ template<>
|
|||
struct AK::Formatter<Web::CSS::Angle> : Formatter<StringView> {
|
||||
ErrorOr<void> format(FormatBuilder& builder, Web::CSS::Angle const& angle)
|
||||
{
|
||||
return Formatter<StringView>::format(builder, TRY(angle.to_string()));
|
||||
return Formatter<StringView>::format(builder, angle.to_string());
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue