servo/components/shared
Martin Robinson 471d3572b7
script: No longer do explicit reflows for display (#34599)
These all happen now in *update the rendering*, typically after the
message that triggered this code is processed, though in two cases
reflow needs to be triggered explicitly. This makes `ReflowReason`
redundant though perhaps `ReflowCondition` can be expanded later to give
more insight into why the page is dirty.

- Handling of the "reflow timer" concept has been explained a bit more via
  data structures and rustdoc comments.
- Theme changes are cleaned up a little to simplify what happens during
  reflow and to avoid unecessary reflows when the theme doesn't change.

Notably, layout queries and scrolling still trigger normal reflows and
don't update the rendering. This needs more investigation as it's
unclear to me currently whether or not they should update the rendering
and simply delay event dispatch or only reflow.

In general, this is a simplfication of the code.

Fixes #31871.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2024-12-13 13:25:47 +00:00
..
background_hang_monitor Remove some unused dependencies (#34355) 2024-11-25 10:29:58 +00:00
base Remove size_of_test macro from legacy layout and inline it (#34055) 2024-10-29 14:46:10 +00:00
bluetooth doc(resources): Add documentation to undocumented embedder_traits::resources::Resource variants (#33885) 2024-10-18 03:44:14 +00:00
canvas Replace sparkle with glow in components/canvas (#33918) 2024-11-20 09:05:24 +00:00
compositing Add embedder event for preferred color scheme and respond to it in the LayoutThread (#34532) 2024-12-12 06:17:02 +00:00
devtools Upgrade Rust to 1.82.0 (#34592) 2024-12-12 12:00:51 +00:00
embedder feat: webxr feature flag (#34241) 2024-11-13 17:16:58 +00:00
fonts Remove some unused dependencies (#34355) 2024-11-25 10:29:58 +00:00
net Upgrade Rust to 1.82.0 (#34592) 2024-12-12 12:00:51 +00:00
profile Plumb URL into interval profiler tracing events (#34337) 2024-11-22 13:31:00 +00:00
script Upgrade Rust to 1.82.0 (#34592) 2024-12-12 12:00:51 +00:00
script_layout script: No longer do explicit reflows for display (#34599) 2024-12-13 13:25:47 +00:00
webrender Remove some unused dependencies (#34355) 2024-11-25 10:29:58 +00:00