mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
compositor: Do not wait for animation termination to take screenshots (#38055)
WPT tests are expected to create screenshots as soon as everything is loaded. If an animation is happening adding the "reftest-wait" class to the root element is appropriate way to delay the screenshot. Previously, the test harness was waiting for all animations to finish, but that is just leading to many timeouts. Removing that code fixes the timeouts. Two Servo-specific tests are also updated as they were written with Servo's previous behavior in mind. Testing: There are test result updates for this change. Many TIMEOUTS now either correctly PASS OR FAIL. Fixes: #36931. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
f6b98d5c56
commit
5bc3c3088a
45 changed files with 26 additions and 102 deletions
|
@ -139,12 +139,6 @@ impl WebViewRenderer {
|
|||
}
|
||||
}
|
||||
|
||||
pub(crate) fn animations_or_animation_callbacks_running(&self) -> bool {
|
||||
self.pipelines
|
||||
.values()
|
||||
.any(PipelineDetails::animations_or_animation_callbacks_running)
|
||||
}
|
||||
|
||||
pub(crate) fn animation_callbacks_running(&self) -> bool {
|
||||
self.pipelines
|
||||
.values()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue