aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlformcontrolscollection.rs
diff options
context:
space:
mode:
authorAlexander Lopatin <alopatindev@gmail.com>2016-02-07 02:55:21 +0300
committerAlexander Lopatin <alopatindev@gmail.com>2016-02-07 02:55:21 +0300
commit2be49404be8885d97735792c2833d4e8b1cb007f (patch)
treecb2f9e5bbf954ed8fffde7abfa01dbed329048e6 /components/script/dom/htmlformcontrolscollection.rs
parent7c249b1d539c37ab54e9fabfaf0442a5ac0243a9 (diff)
downloadservo-2be49404be8885d97735792c2833d4e8b1cb007f.tar.gz
servo-2be49404be8885d97735792c2833d4e8b1cb007f.zip
Fix #9508: Beautify our union enums constructors
Diffstat (limited to 'components/script/dom/htmlformcontrolscollection.rs')
-rw-r--r--components/script/dom/htmlformcontrolscollection.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/htmlformcontrolscollection.rs b/components/script/dom/htmlformcontrolscollection.rs
index 734878d75c4..3de32f948c3 100644
--- a/components/script/dom/htmlformcontrolscollection.rs
+++ b/components/script/dom/htmlformcontrolscollection.rs
@@ -5,7 +5,7 @@
use dom::bindings::codegen::Bindings::HTMLCollectionBinding::HTMLCollectionMethods;
use dom::bindings::codegen::Bindings::HTMLFormControlsCollectionBinding;
use dom::bindings::codegen::Bindings::HTMLFormControlsCollectionBinding::HTMLFormControlsCollectionMethods;
-use dom::bindings::codegen::UnionTypes::RadioNodeListOrElement::{self, eElement, eRadioNodeList};
+use dom::bindings::codegen::UnionTypes::RadioNodeListOrElement;
use dom::bindings::global::GlobalRef;
use dom::bindings::inheritance::Castable;
use dom::bindings::js::Root;
@@ -62,7 +62,7 @@ impl HTMLFormControlsCollectionMethods for HTMLFormControlsCollection {
let mut peekable = filter_map.peekable();
// Step 2
if peekable.peek().is_none() {
- Some(eElement(elem))
+ Some(RadioNodeListOrElement::Element(elem))
} else {
// Step 4-5
let once = iter::once(Root::upcast::<Node>(elem));
@@ -70,7 +70,7 @@ impl HTMLFormControlsCollectionMethods for HTMLFormControlsCollection {
let global = self.global();
let global = global.r();
let window = global.as_window();
- Some(eRadioNodeList(RadioNodeList::new_simple_list(window, list)))
+ Some(RadioNodeListOrElement::RadioNodeList(RadioNodeList::new_simple_list(window, list)))
}
// Step 3
} else { None }