aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/blob.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/blob.rs')
-rw-r--r--src/components/script/dom/blob.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components/script/dom/blob.rs b/src/components/script/dom/blob.rs
index 69ecf68a978..34d7399d871 100644
--- a/src/components/script/dom/blob.rs
+++ b/src/components/script/dom/blob.rs
@@ -8,8 +8,6 @@ use script_task::{page_from_context};
use js::jsapi::{JSContext, JSObject};
-use std::cast;
-
pub struct Blob {
reflector_: Reflector
}
@@ -23,8 +21,12 @@ impl Blob {
}
impl Reflectable for Blob {
- fn reflector(&mut self) -> &mut Reflector {
- unsafe { cast::transmute(&self.reflector_) }
+ fn reflector<'a>(&'a self) -> &'a Reflector {
+ &self.reflector_
+ }
+
+ fn mut_reflector<'a>(&'a mut self) -> &'a mut Reflector {
+ &mut self.reflector_
}
fn wrap_object_shared(@mut self, cx: *JSContext, scope: *JSObject) -> *JSObject {