mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Precompute XRRigidTransform's matrices
This commit is contained in:
parent
77e857891a
commit
6fda2f28a6
2 changed files with 27 additions and 14 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue