mirror of
https://github.com/servo/servo
synced 2026-05-10 17:12:23 +02:00
This change adds a new API to the `WebView` for capturing screenshots. This makes it possible to: - use the reftest waiting infrastructure via the API easily. - take more than a single screenshot in one Servo run. - take screenshots, but still paint the `WebView` normally prior to the moment that the screenshot is ready, instead of preventing all non-screenshot-ready paints while taking a screenshot. In addition, the previous infrastructure, the `wait_for_stable_image` option is removed completely. Testing: This change is tested by the passing of the WPT tests, as they commonly use the screenshot feature. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Delan Azabani <dazabani@igalia.com>
157 KiB
157 KiB