diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-26 22:05:28 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-03-26 22:05:28 +0530 |
commit | c9ccf7aeb45540ae6ceb325c633d0f8c0c37d653 (patch) | |
tree | 6f26043df2bf561ec41f957b8966e1dd7e649402 /components/script | |
parent | 432739164b1f3a117c0aac1dfc97b41018c89b46 (diff) | |
download | servo-c9ccf7aeb45540ae6ceb325c633d0f8c0c37d653.tar.gz servo-c9ccf7aeb45540ae6ceb325c633d0f8c0c37d653.zip |
make no_jsmanaged_fields not require imports
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/macros.rs | 8 | ||||
-rw-r--r-- | components/script/dom/node.rs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs index b1cba9ccd3e..42f23b8c4b2 100644 --- a/components/script/dom/macros.rs +++ b/components/script/dom/macros.rs @@ -169,18 +169,18 @@ macro_rules! make_uint_setter( macro_rules! no_jsmanaged_fields( ($($ty:ident),+) => ( $( - impl JSTraceable for $ty { + impl $crate::dom::bindings::trace::JSTraceable for $ty { #[inline] - fn trace(&self, _: *mut JSTracer) { + fn trace(&self, _: *mut ::js::jsapi::JSTracer) { // Do nothing } } )+ ); ($ty:ident<$($gen:ident),+>) => ( - impl<$($gen),+> JSTraceable for $ty<$($gen),+> { + impl<$($gen),+> $crate::dom::bindings::trace::JSTraceable for $ty<$($gen),+> { #[inline] - fn trace(&self, _: *mut JSTracer) { + fn trace(&self, _: *mut ::js::jsapi::JSTracer) { // Do nothing } } diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 2363d2f119b..0873895020c 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -54,7 +54,7 @@ use selectors::matching::matches; use style::properties::ComputedValues; use style; -use js::jsapi::{JSContext, JSObject, JSTracer, JSRuntime}; +use js::jsapi::{JSContext, JSObject, JSRuntime}; use js::jsfriendapi; use core::nonzero::NonZero; use libc; |