mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibWeb: Create CSS::Sizes from CSSPixels
This commit is contained in:
parent
affc8a22ca
commit
4754204f01
Notes:
sideshowbarker
2024-07-17 04:32:07 +09:00
Author: https://github.com/AtkinsSJ
Commit: 4754204f01
Pull-request: https://github.com/SerenityOS/serenity/pull/16514
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/linusg ✅
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ Size Size::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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue