servo/components/layout_2020/flexbox
Oriol Brufau 7517976722
layout: Unify FlexItem::new() and FlexItemBox::main_content_size_info() (#35900)
These methods were doing virtually the same thing. So this patch moves
the common logic into a new `FlexItemBox::to_flex_item()`, which is then
called by `FlexItem::new()` and `FlexItemBox::main_content_size_info()`.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-03-14 21:37:19 +00:00
..
geom.rs layout: Unify FlexItem::new() and FlexItemBox::main_content_size_info() (#35900) 2025-03-14 21:37:19 +00:00
layout.rs layout: Unify FlexItem::new() and FlexItemBox::main_content_size_info() (#35900) 2025-03-14 21:37:19 +00:00
mod.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00