mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb: Replace all px Length creation with Length::make_px(CSSPixels)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user