diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2019-03-26 12:58:52 -0700 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2019-03-26 12:58:52 -0700 |
commit | 240b5e7c972b73ceb974a55b72befcdfa60bdab2 (patch) | |
tree | a42b74048c8ff944ff05b9bea1fd550dfa40f80c | |
parent | 4f128e47e53d2cad4e299d73a647f278f035aa30 (diff) | |
download | servo-240b5e7c972b73ceb974a55b72befcdfa60bdab2.tar.gz servo-240b5e7c972b73ceb974a55b72befcdfa60bdab2.zip |
Clean up trace impls
-rw-r--r-- | components/script/dom/bindings/trace.rs | 51 |
1 files changed, 2 insertions, 49 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs index 1cc2a9a12a5..6d704ef7cb7 100644 --- a/components/script/dom/bindings/trace.rs +++ b/components/script/dom/bindings/trace.rs @@ -493,6 +493,8 @@ unsafe_no_jsmanaged_fields!(RenderApiSender); unsafe_no_jsmanaged_fields!(ResourceFetchTiming); unsafe_no_jsmanaged_fields!(Timespec); unsafe_no_jsmanaged_fields!(HTMLMediaElementFetchContext); +unsafe_no_jsmanaged_fields!(Rotation3D<f64>, Transform2D<f32>, Transform3D<f64>); +unsafe_no_jsmanaged_fields!(Point2D<f32>, Vector2D<f32>, Rect<Au>, Rect<f32>); unsafe impl<'a> JSTraceable for &'a str { #[inline] @@ -584,34 +586,6 @@ where } } -unsafe impl JSTraceable for Rotation3D<f64> { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - -unsafe impl JSTraceable for Transform2D<f32> { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - -unsafe impl JSTraceable for Transform3D<f64> { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - -unsafe impl JSTraceable for Point2D<f32> { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - unsafe impl<T, U> JSTraceable for TypedScale<f32, T, U> { #[inline] unsafe fn trace(&self, _trc: *mut JSTracer) { @@ -619,13 +593,6 @@ unsafe impl<T, U> JSTraceable for TypedScale<f32, T, U> { } } -unsafe impl JSTraceable for Vector2D<f32> { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - unsafe impl<T> JSTraceable for EuclidLength<u64, T> { #[inline] unsafe fn trace(&self, _trc: *mut JSTracer) { @@ -633,20 +600,6 @@ unsafe impl<T> JSTraceable for EuclidLength<u64, T> { } } -unsafe impl JSTraceable for Rect<Au> { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - -unsafe impl JSTraceable for Rect<f32> { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - unsafe impl<U> JSTraceable for TypedSize2D<i32, U> { #[inline] unsafe fn trace(&self, _trc: *mut JSTracer) { |