mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +00:00
LibWeb: Replace all px Length creation with Length::make_px(CSSPixels)
This commit is contained in:
parent
13b1952929
commit
7d40e3eb0d
5 changed files with 4 additions and 16 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue