servo/components/layout_2020
Martin Robinson 30ab348116 Properly position absolutes with static insets that are children of floats
Previously, final float positions were calculated when their parents
were positioned. This prevented proper positioning of absolute children
of floats with static insets, because they accumulate offsets as they
are hoisted up the tree.

This change moves the final float positioning to
`PlacementState::place_fragment` for the float itself so that it happens
before any insets are updated for hoisted descendants. In addition to
simplifying the code, this makes it a bit more efficient. Finally,
floats are taken into account when updating static insets of hoisted
boxes.

Fixes #29826.
2023-06-22 01:55:21 +02:00
..
display_list Correct rendering of floated root 2023-06-20 17:46:45 +02:00
flexbox Simplify layout of absolutes with static insets 2023-06-20 11:44:25 +02:00
flow Properly position absolutes with static insets that are children of floats 2023-06-22 01:55:21 +02:00
fragment_tree Layout 2020: Move all Fragment code to the fragment_tree directory 2023-06-04 18:12:11 +02:00
tests Correct rendering of floated root 2023-06-20 17:46:45 +02:00
Cargo.toml Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
cell.rs Implement Default for ArcRefCell 2020-03-17 11:15:17 -07:00
context.rs Combine DOM-related concepts in Layout 2020 into dom.rs 2023-05-13 11:52:59 +02:00
dom.rs Combine DOM-related concepts in Layout 2020 into dom.rs 2023-05-13 11:52:59 +02:00
dom_traversal.rs Further changes required by Servo 2023-05-16 12:54:55 +02:00
formatting_contexts.rs Simplify layout of absolutes with static insets 2023-06-20 11:44:25 +02:00
geom.rs Place floats in layout 2020, but don't flow text around the floats yet. 2023-06-03 06:09:21 +02:00
layout_debug.rs Layout 2020: Move all Fragment code to the fragment_tree directory 2023-06-04 18:12:11 +02:00
lib.rs Layout 2020: Move all Fragment code to the fragment_tree directory 2023-06-04 18:12:11 +02:00
lists.rs Combine DOM-related concepts in Layout 2020 into dom.rs 2023-05-13 11:52:59 +02:00
positioned.rs Properly position absolutes with static insets that are children of floats 2023-06-22 01:55:21 +02:00
query.rs Layout 2020: Move all Fragment code to the fragment_tree directory 2023-06-04 18:12:11 +02:00
replaced.rs Layout 2020: Move all Fragment code to the fragment_tree directory 2023-06-04 18:12:11 +02:00
sizing.rs Handle floats in BlockContainer::inline_content_sizes 2023-06-19 16:02:35 +02:00
style_ext.rs layout_2020: Add 'establishes_block_formatting_context' method to 'ComputedValuesExt' 2023-05-31 21:51:52 +08:00
traversal.rs Combine DOM-related concepts in Layout 2020 into dom.rs 2023-05-13 11:52:59 +02:00