mirror of
https://github.com/servo/servo
synced 2026-05-12 18:06:32 +02:00
A LayoutBox typically has one LayoutBoxBase, or none in the case of `LayoutBox::DisplayContents`. However, `LayoutBox::InlineLevel` can contain multiple inline items, each one with its base. But since things like the style or the fragment flags should be the same for all of them, getting the first base is sometimes enough. Testing: not needed, no change in behavior. Signed-off-by: Oriol Brufau <obrufau@igalia.com>