diff options
Diffstat (limited to 'src/components/script/dom/htmlformelement.rs')
-rw-r--r-- | src/components/script/dom/htmlformelement.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/script/dom/htmlformelement.rs b/src/components/script/dom/htmlformelement.rs index c7773bdf68a..9cba31363ab 100644 --- a/src/components/script/dom/htmlformelement.rs +++ b/src/components/script/dom/htmlformelement.rs @@ -4,7 +4,7 @@ use dom::bindings::codegen::BindingDeclarations::HTMLFormElementBinding; use dom::bindings::codegen::InheritTypes::HTMLFormElementDerived; -use dom::bindings::js::{JS, JSRef, RootCollection, Temporary}; +use dom::bindings::js::{JS, JSRef, Temporary}; use dom::bindings::error::ErrorResult; use dom::document::Document; use dom::element::{Element, HTMLFormElementTypeId}; @@ -143,8 +143,7 @@ impl<'a> HTMLFormElementMethods for JSRef<'a, HTMLFormElement> { fn Elements(&self) -> Temporary<HTMLCollection> { // FIXME: https://github.com/mozilla/servo/issues/1844 - let roots = RootCollection::new(); - let window = window_from_node(self).root(&roots); + let window = window_from_node(self).root(); HTMLCollection::new(&*window, Static(vec!())) } |