refactor: add CanGc as argument to methods in Document (#36392)

Add CanGc as arguments in methods in Document

Testing: These changes do not require tests because they are a refactor.
Addressed part of https://github.com/servo/servo/issues/34573.

Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
Yerkebulan Tulibergenov 2025-04-07 16:15:23 -07:00 committed by GitHub
parent 9bdc46d66b
commit 76e0b8ec06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 61 additions and 55 deletions

View file

@ -992,7 +992,7 @@ impl ModuleOwner {
.has_attribute(&local_name!("async"));
if !asynch && (*script.root()).get_parser_inserted() {
document.deferred_script_loaded(&script.root(), load);
document.deferred_script_loaded(&script.root(), load, can_gc);
} else if !asynch && !(*script.root()).get_non_blocking() {
document.asap_in_order_script_loaded(&script.root(), load, can_gc);
} else {