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
commit 1feacd4b52
Notes: sideshowbarker 2024-07-16 18:03:21 +09:00
16 changed files with 34 additions and 73 deletions

View file

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