diff options
author | Jinwoo Song <jinwoo7.song@samsung.com> | 2015-06-01 11:35:14 +0900 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-09-12 01:06:35 +0200 |
commit | d524601cf58f51cd04df908e672a539665ad751b (patch) | |
tree | b50a812b0fc6aa2d9440c9411c8eafe0bb38b0fe /components/layout/display_list_builder.rs | |
parent | f11fcebd9ca460a2eb7ccbdd0c510e8904f36249 (diff) | |
download | servo-d524601cf58f51cd04df908e672a539665ad751b.tar.gz servo-d524601cf58f51cd04df908e672a539665ad751b.zip |
CSS 'transformation: skew()' should take <angle> type as parameters
Current implementation is taking <number> type as parameter so skew()
does not work properly. Let the skew() to get <angle> as specification
described.
Fixes #6237.
Diffstat (limited to 'components/layout/display_list_builder.rs')
-rw-r--r-- | components/layout/display_list_builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs index 8574ce018a0..9a78c0d8909 100644 --- a/components/layout/display_list_builder.rs +++ b/components/layout/display_list_builder.rs @@ -1217,8 +1217,8 @@ impl FragmentDisplayListBuilding for Fragment { transform::ComputedOperation::Matrix(m) => { m.to_gfx_matrix() } - transform::ComputedOperation::Skew(sx, sy) => { - Matrix4::create_skew(sx, sy) + transform::ComputedOperation::Skew(theta_x, theta_y) => { + Matrix4::create_skew(theta_x.radians(), theta_y.radians()) } }; |