mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Return CSSPixels from calculate_inner_width()
Initially, this function was made to return CSS::Length because some of its callers were expecting it to ignore "auto" width on input and return it as is. Instead, let's just forbid using "auto" for input width and always return CSSPixels.
This commit is contained in:
parent
4bc38300ad
commit
05a1dbeb91
Notes:
sideshowbarker
2024-07-18 05:37:06 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 05a1dbeb91
Pull-request: https://github.com/SerenityOS/serenity/pull/22636
Reviewed-by: https://github.com/AtkinsSJ
6 changed files with 48 additions and 40 deletions
|
@ -29,7 +29,7 @@ template<typename T>
|
|||
|
||||
CSSPixels FlexFormattingContext::get_pixel_width(Box const& box, CSS::Size const& size) const
|
||||
{
|
||||
return calculate_inner_width(box, containing_block_width_as_available_size(box), size).to_px(box);
|
||||
return calculate_inner_width(box, containing_block_width_as_available_size(box), size);
|
||||
}
|
||||
|
||||
CSSPixels FlexFormattingContext::get_pixel_height(Box const& box, CSS::Size const& size) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue