aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/reflector.rs
diff options
context:
space:
mode:
authorrohan.prinja <rohan.prinja@samsung.com>2015-10-27 17:58:34 +0900
committerrohan.prinja <rohan.prinja@samsung.com>2015-10-30 20:26:29 +0900
commit45224028dbc1d75e6dfc8add19ff8e997c7ebb99 (patch)
treef5a113706605564ec491dbf9710842d79e5b2e5c /components/plugins/reflector.rs
parentbb2536cd014676263f5bfd5d98cf0fc69d2abee0 (diff)
downloadservo-45224028dbc1d75e6dfc8add19ff8e997c7ebb99.tar.gz
servo-45224028dbc1d75e6dfc8add19ff8e997c7ebb99.zip
more refactoring
Diffstat (limited to 'components/plugins/reflector.rs')
-rw-r--r--components/plugins/reflector.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/plugins/reflector.rs b/components/plugins/reflector.rs
index 4e4a0f3b442..027f2ecf172 100644
--- a/components/plugins/reflector.rs
+++ b/components/plugins/reflector.rs
@@ -16,13 +16,13 @@ pub fn expand_reflector(cx: &mut ExtCtxt, span: Span, _: &MetaItem, annotatable:
let struct_name = item.ident;
// This path has to be hardcoded, unfortunately, since we can't resolve paths at expansion time
match def.fields.iter().find(
- |f| match_ty_unwrap(&*f.node.ty, &["dom", "bindings", "utils", "Reflector"]).is_some()) {
+ |f| match_ty_unwrap(&*f.node.ty, &["dom", "bindings", "reflector", "Reflector"]).is_some()) {
// If it has a field that is a Reflector, use that
Some(f) => {
let field_name = f.node.ident();
let impl_item = quote_item!(cx,
- impl ::dom::bindings::utils::Reflectable for $struct_name {
- fn reflector<'a>(&'a self) -> &'a ::dom::bindings::utils::Reflector {
+ impl ::dom::bindings::reflector::Reflectable for $struct_name {
+ fn reflector<'a>(&'a self) -> &'a ::dom::bindings::reflector::Reflector {
&self.$field_name
}
fn init_reflector(&mut self, obj: *mut ::js::jsapi::JSObject) {
@@ -36,8 +36,8 @@ pub fn expand_reflector(cx: &mut ExtCtxt, span: Span, _: &MetaItem, annotatable:
None => {
let field_name = def.fields[0].node.ident();
let impl_item = quote_item!(cx,
- impl ::dom::bindings::utils::Reflectable for $struct_name {
- fn reflector<'a>(&'a self) -> &'a ::dom::bindings::utils::Reflector {
+ impl ::dom::bindings::reflector::Reflectable for $struct_name {
+ fn reflector<'a>(&'a self) -> &'a ::dom::bindings::reflector::Reflector {
self.$field_name.reflector()
}
fn init_reflector(&mut self, obj: *mut ::js::jsapi::JSObject) {