servo/components/layout
Oriol Brufau fe9d49fccc
layout: Require specific layout info in BoxFragment::new() (#37917)
It was very easy to forget about using `.with_specific_layout_info()` to
set the specific layout info, so it's better to make it a parameter.

In fact this already happened in the past: #36993 fixed the missing
specific layout info for flex items.

This patch fixes it for floats and atomic inlines. It also propagates it
in other cases where not doing so was not a big deal because the
specific layout info was None, but that was a fragile assumption.

Testing: Various WPT improvements
Fixes: #37898

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-07-07 15:25:15 +00:00
..
display_list layout: Only create a LayoutContext if restyling (#37726) 2025-06-27 15:01:30 +00:00
flexbox layout: Require specific layout info in BoxFragment::new() (#37917) 2025-07-07 15:25:15 +00:00
flow layout: Require specific layout info in BoxFragment::new() (#37917) 2025-07-07 15:25:15 +00:00
fragment_tree layout: Require specific layout info in BoxFragment::new() (#37917) 2025-07-07 15:25:15 +00:00
stylesheets layout: Implement list-style-position quirk (#37837) 2025-07-03 09:16:54 +00:00
table layout: Require specific layout info in BoxFragment::new() (#37917) 2025-07-07 15:25:15 +00:00
taffy layout: Require specific layout info in BoxFragment::new() (#37917) 2025-07-07 15:25:15 +00:00
tests layout: Combine layout_2020 and layout_thread_2020 into a crate called layout (#36613) 2025-04-19 10:17:03 +00:00
Cargo.toml Rename script_layout_interface to layout_api (#37591) 2025-06-20 17:13:05 +00:00
cell.rs layout: Combine layout_2020 and layout_thread_2020 into a crate called layout (#36613) 2025-04-19 10:17:03 +00:00
construct_modern.rs Layout: Continue support incremental box tree reconstruction for flex&taffy level box (#37854) 2025-07-04 09:35:09 +00:00
context.rs layout: Only create a LayoutContext if restyling (#37726) 2025-06-27 15:01:30 +00:00
dom.rs layout: Add incremental box tree construction for inline floats and abspos (#37892) 2025-07-05 08:33:04 +00:00
dom_traversal.rs layout: Add a first pass at incremental box tree construction (#37751) 2025-07-03 08:13:20 +00:00
formatting_contexts.rs layout: Unify logic for laying out replaced and non-replaced in a BFC (#37864) 2025-07-04 17:47:40 +00:00
geom.rs layout: Fix block SizeConstraint for replaced elements (#37758) 2025-06-30 12:07:37 +00:00
layout_box_base.rs layout: Add a repaint-only incremental layout mode (#36978) 2025-05-12 17:03:50 +00:00
layout_impl.rs libservo|compositor: Have scroll offset directionality match that of WebRender and the web (#37752) 2025-07-03 13:04:06 +00:00
lib.rs layout: Move text decoration propagation to stacking context tree construction (#37069) 2025-05-21 16:38:29 +00:00
lists.rs Upgrade Stylo to 2025-06-03 (#37444) 2025-06-19 12:30:32 +00:00
positioned.rs layout: Require specific layout info in BoxFragment::new() (#37917) 2025-07-07 15:25:15 +00:00
query.rs Rename script_layout_interface to layout_api (#37591) 2025-06-20 17:13:05 +00:00
quotes.rs layout: Combine layout_2020 and layout_thread_2020 into a crate called layout (#36613) 2025-04-19 10:17:03 +00:00
replaced.rs layout: Unify logic for laying out replaced and non-replaced in a BFC (#37864) 2025-07-04 17:47:40 +00:00
sizing.rs layout: Fix block SizeConstraint for replaced elements (#37758) 2025-06-30 12:07:37 +00:00
style_ext.rs Move to_bidi_level method from Stylo to Servo (#37343) 2025-06-11 14:44:13 +00:00
traversal.rs layout: Add incremental box tree construction for table caption (#37849) 2025-07-03 10:32:05 +00:00