servo/tests/wpt/mozilla/meta
Martin Robinson 9416251cab
script: Unify script-based "update the rendering" and throttle it to 60 FPS (#38431)
Instead of running "update the rendering" at every IPC message, only run
it when a timeout has occured in script. In addition, avoid updating the
rendering if a rendering update isn't necessary. This should greatly
reduce the amount of processing that has to happen in script.

Because we are running many fewer calls to "update the rendering" it is
reasonable now to ensure that these always work the same way. In
particular, we always run rAF and update the animation timeline when
updating the ernder

In addition, pull the following things out of reflow:

 - Code dealing with informing the Constellation that a Pipeline has
   become Idle when waiting for a screenshot.
 - Detecting when it is time to fulfill the `document.fonts.ready`
   promise.

The latter means that reflow can never cause a garbage collection,
making timing of reflows more consistent and simplifying many callsites
that need to do script queries.

Followup changes will seek to simplify the way that ScriptThread-driven
animation timeouts happen even simpler.

Testing: In general, this should not change testable behavior so much,
though it
does seem to fix one test.  The main improvement here should be that
the ScriptThread does less work.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2025-08-04 16:27:00 +00:00
..
bluetooth Run same tests for layout-2020 and layout-2013 (#30092) 2023-08-15 00:28:32 +00:00
css script: Get the screen metrics from the WebViewDelegate instead of via the compositor (#38020) 2025-07-12 16:07:39 +00:00
gfx-rs-gecko layout: Paint collapsed table borders on their own (#35075) 2025-01-21 13:10:27 +00:00
mozilla canvas: Make 2D context state creation failable and use dom_canvas_backend pref for backend selection (#38310) 2025-07-28 09:13:07 +00:00
webxr Allow prefs to be overridden from a file and set WPT-specific prefs from file (#33163) 2024-08-24 06:47:57 +00:00
__dir__.ini Unconditionally enable the URLPattern API (#37116) 2025-05-24 13:20:45 +00:00
MANIFEST.json script: Unify script-based "update the rendering" and throttle it to 60 FPS (#38431) 2025-08-04 16:27:00 +00:00