mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb: Return CSSPixels from calculate_inner_height()
Similar to calculate_inner_width(), let's make the caller responsible for handling "auto" instead of returning the input height as is when when it cannot be resolved.
This commit is contained in:
parent
05a1dbeb91
commit
39abd9095e
Notes:
sideshowbarker
2024-07-17 08:59:18 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 39abd9095e
Pull-request: https://github.com/SerenityOS/serenity/pull/22636
Reviewed-by: https://github.com/AtkinsSJ
6 changed files with 22 additions and 20 deletions
|
@ -180,7 +180,7 @@ void InlineFormattingContext::dimension_box_on_line(Box const& box, LayoutMode l
|
|||
parent().compute_height(box, AvailableSpace(AvailableSize::make_indefinite(), AvailableSize::make_indefinite()));
|
||||
} else {
|
||||
auto inner_height = calculate_inner_height(box, AvailableSize::make_definite(m_containing_block_state.content_height()), height_value);
|
||||
box_state.set_content_height(inner_height.to_px(box));
|
||||
box_state.set_content_height(inner_height);
|
||||
}
|
||||
|
||||
if (independent_formatting_context)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue