aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/errorevent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/errorevent.rs')
-rw-r--r--components/script/dom/errorevent.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/errorevent.rs b/components/script/dom/errorevent.rs
index 337e4f34fcc..cf943948455 100644
--- a/components/script/dom/errorevent.rs
+++ b/components/script/dom/errorevent.rs
@@ -9,7 +9,7 @@ use dom::bindings::codegen::Bindings::EventBinding::EventMethods;
use dom::bindings::error::Fallible;
use dom::bindings::inheritance::Castable;
use dom::bindings::reflector::reflect_dom_object;
-use dom::bindings::root::Root;
+use dom::bindings::root::DomRoot;
use dom::bindings::str::DOMString;
use dom::bindings::trace::RootedTraceableBox;
use dom::event::{Event, EventBubbles, EventCancelable};
@@ -43,7 +43,7 @@ impl ErrorEvent {
}
}
- pub fn new_uninitialized(global: &GlobalScope) -> Root<ErrorEvent> {
+ pub fn new_uninitialized(global: &GlobalScope) -> DomRoot<ErrorEvent> {
reflect_dom_object(box ErrorEvent::new_inherited(),
global,
ErrorEventBinding::Wrap)
@@ -57,7 +57,7 @@ impl ErrorEvent {
filename: DOMString,
lineno: u32,
colno: u32,
- error: HandleValue) -> Root<ErrorEvent> {
+ error: HandleValue) -> DomRoot<ErrorEvent> {
let ev = ErrorEvent::new_uninitialized(global);
{
let event = ev.upcast::<Event>();
@@ -75,7 +75,7 @@ impl ErrorEvent {
pub fn Constructor(global: &GlobalScope,
type_: DOMString,
init: RootedTraceableBox<ErrorEventBinding::ErrorEventInit>)
- -> Fallible<Root<ErrorEvent>>{
+ -> Fallible<DomRoot<ErrorEvent>>{
let msg = match init.message.as_ref() {
Some(message) => message.clone(),
None => DOMString::new(),