Skip to content

Conversation

@mrobinson
Copy link
Member

Instead of relying on Sevo::animating() in servoshell to drive the
event loop, it is sufficient to just let the RefreshDriver wake it up
when it is time to re-render.

This allows us to remove Servo::animating() completely. It is a bit
odd that there is a global API to track this, rather than per-WebView
or window, so this change just removes it entirely.

Testing: This should make the main loop of headless servoshell more efficient,
but I do not think this difference is going to be observable in any way.

Instead of relying on `Sevo::animating()` in servoshell to drive the
event loop, it is sufficient to just let the `RefreshDriver` wake it up
when it is time to re-render.

This allows us to remove `Servo::animating()` completely. It is a bit
odd that there is a global API to track this, rather than per-`WebView`
or window, so this change just removes it entirely.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 21, 2025
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Nov 21, 2025
@mrobinson mrobinson added this pull request to the merge queue Nov 21, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 21, 2025
Merged via the queue into servo:main with commit 39676a6 Nov 21, 2025
35 checks passed
@mrobinson mrobinson deleted the do-not-wake-up-constantly branch November 21, 2025 18:16
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 21, 2025
mrobinson added a commit to mrobinson/servo that referenced this pull request Nov 25, 2025
This is dead code servo#40799, as it is never called. Remove the delegate
call and the entire `ServoShellServoDelegate` as the only thing that it
was doing was printing top-level errors which only happen when something
goes very wrong. It's quite likely that backtraces printed earlier
will be more useful.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
github-merge-queue bot pushed a commit that referenced this pull request Nov 25, 2025
This is dead code #40799, as it is never called. Remove the delegate
call and the entire `ServoShellServoDelegate` as the only thing that it
was doing was printing top-level errors which only happen when something
goes very wrong. It's quite likely that backtraces printed earlier
will be more useful.

Testing: This just removes dead code, so should be covered by existing
tests.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants