diff options
Diffstat (limited to 'components/script/dom/htmloptionscollection.rs')
-rw-r--r-- | components/script/dom/htmloptionscollection.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmloptionscollection.rs b/components/script/dom/htmloptionscollection.rs index 1b31ea4bfcc..e38749b3aa5 100644 --- a/components/script/dom/htmloptionscollection.rs +++ b/components/script/dom/htmloptionscollection.rs @@ -240,11 +240,11 @@ impl HTMLOptionsCollectionMethods<crate::DomTypeHolder> for HTMLOptionsCollectio } /// <https://html.spec.whatwg.org/multipage/#dom-htmloptionscollection-selectedindex> - fn SetSelectedIndex(&self, index: i32) { + fn SetSelectedIndex(&self, index: i32, can_gc: CanGc) { self.upcast() .root_node() .downcast::<HTMLSelectElement>() .expect("HTMLOptionsCollection not rooted on a HTMLSelectElement") - .SetSelectedIndex(index) + .SetSelectedIndex(index, can_gc) } } |