script: Always provide canvas epoch on update_rendering (#39024)

We never not provided it.

Testing: Existing tests.

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
Sam 2025-08-29 18:30:47 +02:00 committed by GitHub
parent b44b461a76
commit 95adb6f673
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 11 deletions

View file

@ -2690,7 +2690,7 @@ impl Document {
.borrow_mut()
.iter()
.filter_map(|(_, context)| context.root())
.filter(|context| context.update_rendering(Some(canvas_epoch)))
.filter(|context| context.update_rendering(canvas_epoch))
.map(|context| context.image_key()),
);
@ -2698,7 +2698,7 @@ impl Document {
self.dirty_2d_contexts
.borrow_mut()
.drain()
.filter(|(_, context)| context.update_rendering(Some(canvas_epoch)))
.filter(|(_, context)| context.update_rendering(canvas_epoch))
.map(|(_, context)| context.image_key()),
);