aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/trace.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2019-03-25 23:48:28 -0700
committerManish Goregaokar <manishsmail@gmail.com>2019-03-26 00:09:15 -0700
commit6fda2f28a6ad9ca63da3853ed5b6164b50948bd6 (patch)
treef1ef25c88504ceefe76d4ab5e89f07ac654ab20d /components/script/dom/bindings/trace.rs
parent77e857891ad9c82b54586e221086fad58f53452f (diff)
downloadservo-6fda2f28a6ad9ca63da3853ed5b6164b50948bd6.tar.gz
servo-6fda2f28a6ad9ca63da3853ed5b6164b50948bd6.zip
Precompute XRRigidTransform's matrices
Diffstat (limited to 'components/script/dom/bindings/trace.rs')
-rw-r--r--components/script/dom/bindings/trace.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs
index 181bae0a3f9..ecb24ecee2d 100644
--- a/components/script/dom/bindings/trace.rs
+++ b/components/script/dom/bindings/trace.rs
@@ -56,7 +56,7 @@ use cssparser::RGBA;
use devtools_traits::{CSSError, TimelineMarkerType, WorkerId};
use encoding_rs::{Decoder, Encoding};
use euclid::Length as EuclidLength;
-use euclid::{Point2D, Rect, Transform2D, Transform3D, TypedScale, TypedSize2D, Vector2D};
+use euclid::{Point2D, Rect, Rotation3D, Transform2D, Transform3D, TypedScale, TypedSize2D, Vector2D};
use html5ever::buffer_queue::BufferQueue;
use html5ever::{LocalName, Namespace, Prefix, QualName};
use http::header::HeaderMap;
@@ -582,6 +582,13 @@ 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) {