mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
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:
parent
b44b461a76
commit
95adb6f673
4 changed files with 11 additions and 11 deletions
|
@ -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()),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue