mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:27:43 +00:00
LibWeb: Create CSS::Sizes from CSSPixels
This commit is contained in:
parent
affc8a22ca
commit
4754204f01
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ Size Size::make_auto()
|
||||||
return Size { Type::Auto, Length::make_auto() };
|
return Size { Type::Auto, Length::make_auto() };
|
||||||
}
|
}
|
||||||
|
|
||||||
Size Size::make_px(float px)
|
Size Size::make_px(CSSPixels px)
|
||||||
{
|
{
|
||||||
return make_length(CSS::Length::make_px(px));
|
return make_length(CSS::Length::make_px(px));
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
static Size make_auto();
|
static Size make_auto();
|
||||||
static Size make_px(float);
|
static Size make_px(CSSPixels);
|
||||||
static Size make_length(Length);
|
static Size make_length(Length);
|
||||||
static Size make_percentage(Percentage);
|
static Size make_percentage(Percentage);
|
||||||
static Size make_min_content();
|
static Size make_min_content();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue