Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-06-07 00:43:42 +02:00
parent 080b3f8d1a
commit 01549f0389

View file

@ -596,6 +596,13 @@ impl<T: ToMatrix> Transform<T> {
}
/// Same as Transform::to_transform_3d_matrix but a f64 version.
pub fn to_transform_3d_matrix_f64(
&self,
reference_box: Option<&Rect<ComputedLength>>
) -> Result<(Transform3D<f64>, bool), ()> {
Self::components_to_transform_3d_matrix_f64(&self.0, reference_box)
}
fn components_to_transform_3d_matrix_f64(
ops: &[T],
reference_box: Option<&Rect<ComputedLength>>,