LibWeb: Replace all px Length creation with Length::make_px(CSSPixels)

This commit is contained in:
Sam Atkins
2022-11-08 16:58:15 +00:00
committed by Linus Groh
parent 13b1952929
commit 7d40e3eb0d
5 changed files with 4 additions and 16 deletions

View File

@@ -29,11 +29,6 @@ Length::Length(float value, Type type)
, m_value(value)
{
}
Length::Length(CSSPixels value, Type type)
: m_type(type)
, m_value(value.value())
{
}
Length::~Length() = default;
Length Length::make_auto()
@@ -41,11 +36,6 @@ Length Length::make_auto()
return Length(0, Type::Auto);
}
Length Length::make_px(float value)
{
return Length(value, Type::Px);
}
Length Length::make_px(CSSPixels value)
{
return Length(value.value(), Type::Px);