mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
script: do not update Document
rendering when waiting on asynchronous canvas image updates (#39022)
This is fixup for #37776. We forget to skip documents with waiting_on_canvas_image_updates flag. Testing: Existing WPT tests and manual testing Fixes: #39021 --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
00d0783471
commit
b44b461a76
2 changed files with 8 additions and 0 deletions
|
@ -2743,6 +2743,10 @@ impl Document {
|
|||
self.waiting_on_canvas_image_updates.set(false);
|
||||
}
|
||||
|
||||
pub(crate) fn waiting_on_canvas_image_updates(&self) -> bool {
|
||||
self.waiting_on_canvas_image_updates.get()
|
||||
}
|
||||
|
||||
/// From <https://drafts.csswg.org/css-font-loading/#fontfaceset-pending-on-the-environment>:
|
||||
///
|
||||
/// > A FontFaceSet is pending on the environment if any of the following are true:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue