Define ComputedOperation::InterpolateMatrix.

We use this arm to store the interpolated result of two mismatched
transform lists, and we resolve it until we know the reference box size
(on Gecko side). The conversion from ComputedOperation::InterpolateMatrix
to eCSSKeyword_interpolatematrix will be implemented later in this patch series.
This commit is contained in:
Boris Chiou 2017-05-25 16:15:13 +08:00
parent f388c0ab1e
commit a6099d0fc0
4 changed files with 56 additions and 4 deletions

View file

@ -2896,6 +2896,10 @@ impl Fragment {
Matrix4D::create_skew(Radians::new(theta_x.radians()),
Radians::new(theta_y.radians()))
}
transform::ComputedOperation::InterpolateMatrix { .. } => {
// TODO: Convert InterpolateMatrix into a valid Matrix4D by the reference box.
Matrix4D::identity()
}
};
transform = transform.pre_mul(&matrix);