mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -118,14 +118,18 @@ impl MicrotaskQueue {
|
|||
let was_interacting = ScriptThread::is_user_interacting();
|
||||
ScriptThread::set_user_interacting(job.is_user_interacting);
|
||||
let _realm = enter_realm(&*target);
|
||||
let _ = job.callback.Call_(&*target, ExceptionHandling::Report);
|
||||
let _ = job
|
||||
.callback
|
||||
.Call_(&*target, ExceptionHandling::Report, can_gc);
|
||||
ScriptThread::set_user_interacting(was_interacting);
|
||||
}
|
||||
},
|
||||
Microtask::User(ref job) => {
|
||||
if let Some(target) = target_provider(job.pipeline) {
|
||||
let _realm = enter_realm(&*target);
|
||||
let _ = job.callback.Call_(&*target, ExceptionHandling::Report);
|
||||
let _ = job
|
||||
.callback
|
||||
.Call_(&*target, ExceptionHandling::Report, can_gc);
|
||||
}
|
||||
},
|
||||
Microtask::MediaElement(ref task) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue