aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/reflector.rs
diff options
context:
space:
mode:
authorMichael Wu <mwu@mozilla.com>2015-04-06 19:27:56 -0400
committerMichael Wu <mwu@mozilla.com>2015-06-19 18:42:48 -0400
commit675267b7822d2d6c30c0e36fc22e0191b741b973 (patch)
tree640b22869e8a7eb7d5657df3074f0b0ccd528c29 /components/plugins/reflector.rs
parenta256f39796270cd3a5f40f33eaa4e407117b0cc6 (diff)
downloadservo-675267b7822d2d6c30c0e36fc22e0191b741b973.tar.gz
servo-675267b7822d2d6c30c0e36fc22e0191b741b973.zip
Upgrade to SM 39
Diffstat (limited to 'components/plugins/reflector.rs')
-rw-r--r--components/plugins/reflector.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/plugins/reflector.rs b/components/plugins/reflector.rs
index 68a6011e7d4..6bb43552a3e 100644
--- a/components/plugins/reflector.rs
+++ b/components/plugins/reflector.rs
@@ -25,6 +25,9 @@ pub fn expand_reflector(cx: &mut ExtCtxt, span: Span, _: &MetaItem, annotatable:
fn reflector<'a>(&'a self) -> &'a ::dom::bindings::utils::Reflector {
&self.$field_name
}
+ fn init_reflector(&mut self, obj: *mut ::js::jsapi::JSObject) {
+ self.$field_name.set_jsobject(obj);
+ }
}
);
impl_item.map(|it| push(Annotatable::Item(it)))
@@ -37,6 +40,9 @@ pub fn expand_reflector(cx: &mut ExtCtxt, span: Span, _: &MetaItem, annotatable:
fn reflector<'a>(&'a self) -> &'a ::dom::bindings::utils::Reflector {
self.$field_name.reflector()
}
+ fn init_reflector(&mut self, obj: *mut ::js::jsapi::JSObject) {
+ self.$field_name.init_reflector(obj);
+ }
}
);
impl_item.map(|it| push(Annotatable::Item(it)))