diff options
author | Yerkebulan Tulibergenov <yerkebulan@gmail.com> | 2025-04-05 23:27:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-06 06:27:59 +0000 |
commit | 6898eae61ee8070bbc19815bc35428200e7074bf (patch) | |
tree | cb5fd5f1c83e93a4df5a10803b85a8c48197b3bc /components/script/dom/htmlselectelement.rs | |
parent | bd43b7873587f9682ec8de53065d0049e3cd88ae (diff) | |
download | servo-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/htmlselectelement.rs')
-rw-r--r-- | components/script/dom/htmlselectelement.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmlselectelement.rs b/components/script/dom/htmlselectelement.rs index e349b58f9bb..0a416bd85a0 100644 --- a/components/script/dom/htmlselectelement.rs +++ b/components/script/dom/htmlselectelement.rs @@ -286,7 +286,7 @@ impl HTMLSelectElement { ); select_box .upcast::<Node>() - .AppendChild(text_container.upcast::<Node>()) + .AppendChild(text_container.upcast::<Node>(), can_gc) .unwrap(); let text = Text::new(DOMString::new(), &document, can_gc); @@ -295,7 +295,7 @@ impl HTMLSelectElement { }); text_container .upcast::<Node>() - .AppendChild(text.upcast::<Node>()) + .AppendChild(text.upcast::<Node>(), can_gc) .unwrap(); let chevron_container = @@ -310,11 +310,11 @@ impl HTMLSelectElement { .SetTextContent(Some("▾".into()), can_gc); select_box .upcast::<Node>() - .AppendChild(chevron_container.upcast::<Node>()) + .AppendChild(chevron_container.upcast::<Node>(), can_gc) .unwrap(); root.upcast::<Node>() - .AppendChild(select_box.upcast::<Node>()) + .AppendChild(select_box.upcast::<Node>(), can_gc) .unwrap(); } |