servo/components/script/dom/servoparser
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
..
async_html.rs cangc fixes in node.rs (#33984) 2024-10-23 22:44:50 +00:00
html.rs CanGc fixes in several files (#33958) 2024-10-21 21:32:22 +00:00
mod.rs script: No longer do explicit reflows for display (#34599) 2024-12-13 13:25:47 +00:00
prefetch.rs Remove referrer policy from document (#34263) 2024-11-19 12:45:10 +00:00
xml.rs Support HTML parser reentrancy (#32820) 2024-08-16 16:25:50 +00:00