Implement moz-transform property

This commit is contained in:
Nazım Can Altınova 2017-04-07 23:49:18 +03:00
parent 67799f9445
commit f9225d84aa
No known key found for this signature in database
GPG key ID: AF9BCD7CE6449954
7 changed files with 320 additions and 46 deletions

View file

@ -2902,6 +2902,10 @@ impl Fragment {
transform::ComputedOperation::Matrix(m) => {
m.to_gfx_matrix()
}
transform::ComputedOperation::MatrixWithPercents(_) => {
// `-moz-transform` is not implemented in Servo yet.
unreachable!()
}
transform::ComputedOperation::Skew(theta_x, theta_y) => {
Matrix4D::create_skew(Radians::new(theta_x.radians()),
Radians::new(theta_y.radians()))