mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
script: Mark callback methods with CanGc. (#35753)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
3d320fa96a
commit
5650fa2e79
26 changed files with 133 additions and 67 deletions
|
@ -640,9 +640,9 @@ impl HTMLCanvasElementMethods<crate::DomTypeHolder> for HTMLCanvasElement {
|
|||
// Set result to a new Blob object, created in the relevant realm of this canvas element
|
||||
// Invoke callback with « result » and "report".
|
||||
let blob = Blob::new(&this.global(), blob_impl, CanGc::note());
|
||||
let _ = callback.Call__(Some(&blob), ExceptionHandling::Report);
|
||||
let _ = callback.Call__(Some(&blob), ExceptionHandling::Report, CanGc::note());
|
||||
} else {
|
||||
let _ = callback.Call__(None, ExceptionHandling::Report);
|
||||
let _ = callback.Call__(None, ExceptionHandling::Report, CanGc::note());
|
||||
}
|
||||
}));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue