1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +00:00

LibWeb: Use doubles for CSS dimension types

Avoid unintentionally converting between float and double multiple times
by just using double everywhere. Also, remove the unused `int` versions
of their constructors.
This commit is contained in:
Sam Atkins 2023-08-20 13:02:41 +01:00 committed by Sam Atkins
parent 95f80bc65b
commit 1feacd4b52
16 changed files with 34 additions and 73 deletions

View file

@ -22,7 +22,6 @@ public:
static Optional<Type> unit_from_name(StringView);
Angle(int value, Type type);
Angle(double value, Type type);
static Angle make_degrees(double);
Angle percentage_of(Percentage const&) const;