aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmldetailselement.rs
diff options
context:
space:
mode:
authorYerkebulan Tulibergenov <yerkebulan@gmail.com>2025-04-05 23:27:59 -0700
committerGitHub <noreply@github.com>2025-04-06 06:27:59 +0000
commit6898eae61ee8070bbc19815bc35428200e7074bf (patch)
treecb5fd5f1c83e93a4df5a10803b85a8c48197b3bc /components/script/dom/htmldetailselement.rs
parentbd43b7873587f9682ec8de53065d0049e3cd88ae (diff)
downloadservo-6898eae61ee8070bbc19815bc35428200e7074bf.tar.gz
servo-6898eae61ee8070bbc19815bc35428200e7074bf.zip
Add CanGc as arguments in methods in Attr and Node (#36371)
Add CanGc as argument to methods in `Attr` and `Node`. Addressed part of https://github.com/servo/servo/issues/34573. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because they are a refactor. Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
Diffstat (limited to 'components/script/dom/htmldetailselement.rs')
-rw-r--r--components/script/dom/htmldetailselement.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmldetailselement.rs b/components/script/dom/htmldetailselement.rs
index 0752da270b8..ace941a1bc3 100644
--- a/components/script/dom/htmldetailselement.rs
+++ b/components/script/dom/htmldetailselement.rs
@@ -118,7 +118,7 @@ impl HTMLDetailsElement {
let summary = HTMLSlotElement::new(local_name!("slot"), None, &document, None, can_gc);
root.upcast::<Node>()
- .AppendChild(summary.upcast::<Node>())
+ .AppendChild(summary.upcast::<Node>(), can_gc)
.unwrap();
let fallback_summary =
@@ -128,12 +128,12 @@ impl HTMLDetailsElement {
.SetTextContent(Some(DEFAULT_SUMMARY.into()), can_gc);
summary
.upcast::<Node>()
- .AppendChild(fallback_summary.upcast::<Node>())
+ .AppendChild(fallback_summary.upcast::<Node>(), can_gc)
.unwrap();
let descendants = HTMLSlotElement::new(local_name!("slot"), None, &document, None, can_gc);
root.upcast::<Node>()
- .AppendChild(descendants.upcast::<Node>())
+ .AppendChild(descendants.upcast::<Node>(), can_gc)
.unwrap();
let _ = self.shadow_tree.borrow_mut().insert(ShadowTree {