diff options
Diffstat (limited to 'components/script/dom/gamepadbutton.rs')
-rw-r--r-- | components/script/dom/gamepadbutton.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/gamepadbutton.rs b/components/script/dom/gamepadbutton.rs index f896b39f3c6..1fc93941f9c 100644 --- a/components/script/dom/gamepadbutton.rs +++ b/components/script/dom/gamepadbutton.rs @@ -6,7 +6,7 @@ use dom::bindings::codegen::Bindings::GamepadButtonBinding; use dom::bindings::codegen::Bindings::GamepadButtonBinding::GamepadButtonMethods; use dom::bindings::num::Finite; use dom::bindings::reflector::{Reflector, reflect_dom_object}; -use dom::bindings::root::Root; +use dom::bindings::root::DomRoot; use dom::globalscope::GlobalScope; use dom_struct::dom_struct; use std::cell::Cell; @@ -29,7 +29,7 @@ impl GamepadButton { } } - pub fn new(global: &GlobalScope, pressed: bool, touched: bool) -> Root<GamepadButton> { + pub fn new(global: &GlobalScope, pressed: bool, touched: bool) -> DomRoot<GamepadButton> { reflect_dom_object(box GamepadButton::new_inherited(pressed, touched), global, GamepadButtonBinding::Wrap) |