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, Transform2D, Transform3D); +unsafe_no_jsmanaged_fields!(Point2D, Vector2D, Rect, Rect); unsafe impl<'a> JSTraceable for &'a str { #[inline] @@ -584,34 +586,6 @@ where } } -unsafe impl JSTraceable for Rotation3D { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - -unsafe impl JSTraceable for Transform2D { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - -unsafe impl JSTraceable for Transform3D { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - -unsafe impl JSTraceable for Point2D { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - unsafe impl JSTraceable for TypedScale { #[inline] unsafe fn trace(&self, _trc: *mut JSTracer) { @@ -619,13 +593,6 @@ unsafe impl JSTraceable for TypedScale { } } -unsafe impl JSTraceable for Vector2D { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - unsafe impl JSTraceable for EuclidLength { #[inline] unsafe fn trace(&self, _trc: *mut JSTracer) { @@ -633,20 +600,6 @@ unsafe impl JSTraceable for EuclidLength { } } -unsafe impl JSTraceable for Rect { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - -unsafe impl JSTraceable for Rect { - #[inline] - unsafe fn trace(&self, _trc: *mut JSTracer) { - // Do nothing - } -} - unsafe impl JSTraceable for TypedSize2D { #[inline] unsafe fn trace(&self, _trc: *mut JSTracer) {