refactor: propagate CanGc arguments through callers (#35565)

Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
Auguste Baum 2025-02-21 18:35:17 +01:00 committed by GitHub
parent 085cd981aa
commit ca1f0486ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 62 additions and 42 deletions

View file

@ -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;
}