mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +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:
@@ -9,7 +9,7 @@
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
Ratio::Ratio(float first, float second)
|
||||
Ratio::Ratio(double first, double second)
|
||||
: m_first_value(first)
|
||||
, m_second_value(second)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user