aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorYerkebulan Tulibergenov <yerkebulan@gmail.com>2025-04-06 16:44:58 -0700
committerGitHub <noreply@github.com>2025-04-06 23:44:58 +0000
commit33b00dbe405ec6b432e465b9ee28d433382d9f32 (patch)
tree9c7599e712d16f535da981000c9681cc5f3f8a8c /components/script/script_thread.rs
parent1f558a0d49d32bec3ad1006903bed069773d0861 (diff)
downloadservo-33b00dbe405ec6b432e465b9ee28d433382d9f32.tar.gz
servo-33b00dbe405ec6b432e465b9ee28d433382d9f32.zip
Add CanGc as arguments in methods in devtools.rs, CharacterData, CSSStyleRule, CSSStyleSheet (#36375)
Add CanGc as arguments in methods in devtools.rs, CharacterData, CSSStyleRule, CSSStyleSheet 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>
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index cc97c172490..1c33c231028 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -2006,13 +2006,13 @@ impl ScriptThread {
None => warn!("Message sent to closed pipeline {}.", id),
},
DevtoolScriptControlMsg::GetRootNode(id, reply) => {
- devtools::handle_get_root_node(&documents, id, reply)
+ devtools::handle_get_root_node(&documents, id, reply, can_gc)
},
DevtoolScriptControlMsg::GetDocumentElement(id, reply) => {
- devtools::handle_get_document_element(&documents, id, reply)
+ devtools::handle_get_document_element(&documents, id, reply, can_gc)
},
DevtoolScriptControlMsg::GetChildren(id, node_id, reply) => {
- devtools::handle_get_children(&documents, id, node_id, reply)
+ devtools::handle_get_children(&documents, id, node_id, reply, can_gc)
},
DevtoolScriptControlMsg::GetAttributeStyle(id, node_id, reply) => {
devtools::handle_get_attribute_style(&documents, id, node_id, reply, can_gc)