mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
refactor: propagate CanGc arguments through callers (#35565)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
parent
085cd981aa
commit
ca1f0486ba
11 changed files with 62 additions and 42 deletions
|
@ -2937,7 +2937,7 @@ impl Document {
|
|||
.unwrap();
|
||||
scripts.swap_remove(idx);
|
||||
}
|
||||
element.execute(result);
|
||||
element.execute(result, CanGc::note());
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#list-of-scripts-that-will-execute-in-order-as-soon-as-possible
|
||||
|
@ -2957,7 +2957,7 @@ impl Document {
|
|||
.asap_in_order_scripts_list
|
||||
.take_next_ready_to_be_executed()
|
||||
{
|
||||
element.execute(result);
|
||||
element.execute(result, CanGc::note());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2985,7 +2985,7 @@ impl Document {
|
|||
}
|
||||
if let Some((element, result)) = self.deferred_scripts.take_next_ready_to_be_executed()
|
||||
{
|
||||
element.execute(result);
|
||||
element.execute(result, CanGc::note());
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue