servo/components/layout
Martin Robinson a66a257b38
script: Properly root nodes with animating images (#37689)
This change fixes an issue and makes a few more minor improvements to
the `ImageAnimationState`:

1. Image rooting and unrooted now happens in one step from
   `Window::update_animations_post_reflow`.
2. The `node_to_animating_image_map` is now stored as a shared `RwLock`
   so that it doesn't need to be taken and then replaced in the
`ImageAnimationState` during reflow. This should prevent a hypothetical
issue
   where image animations are restarted during empty reflows.
3. General naming and idiomatic Rust usage improvements.

Testing: This doesn't really have any obvious behavioral changes,
because all
reflows currently trigger a restyle. It becomes a serious problem with
#37677
and this change fixes the failing test there.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-06-25 13:52:11 +00:00
..
display_list chore: Simplify tracing with servo_tracing macro (#36661) (#37497) 2025-06-18 16:18:04 +00:00
flexbox chore: Simplify tracing with servo_tracing macro (#36661) (#37497) 2025-06-18 16:18:04 +00:00
flow Rename script_layout_interface to layout_api (#37591) 2025-06-20 17:13:05 +00:00
fragment_tree script: Properly root nodes with animating images (#37689) 2025-06-25 13:52:11 +00:00
stylesheets Add a user agent style for the <slot> element (#37174) 2025-05-29 08:20:01 +00:00
table Rename script_layout_interface to layout_api (#37591) 2025-06-20 17:13:05 +00:00
taffy CSS Grid: percentage sizing fixes (#34948) 2025-06-08 15:17:10 +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 Move to_bidi_level method from Stylo to Servo (#37343) 2025-06-11 14:44:13 +00:00
context.rs script: Properly root nodes with animating images (#37689) 2025-06-25 13:52:11 +00:00
dom.rs Rename script_layout_interface to layout_api (#37591) 2025-06-20 17:13:05 +00:00
dom_traversal.rs Rename script_layout_interface to layout_api (#37591) 2025-06-20 17:13:05 +00:00
formatting_contexts.rs chore: Simplify tracing with servo_tracing macro (#36661) (#37497) 2025-06-18 16:18:04 +00:00
geom.rs layout: Inform child layout about final block size (#36980) 2025-05-14 20:35:49 +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 script: Properly root nodes with animating images (#37689) 2025-06-25 13:52:11 +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: Split overflow calculation after fragment tree construction (#37203) 2025-05-30 19:41:05 +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 Rename script_layout_interface to layout_api (#37591) 2025-06-20 17:13:05 +00:00
sizing.rs layout: Combine layout_2020 and layout_thread_2020 into a crate called layout (#36613) 2025-04-19 10:17:03 +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 Rename script_layout_interface to layout_api (#37591) 2025-06-20 17:13:05 +00:00