aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/display_list_builder.rs
diff options
context:
space:
mode:
authorJinwoo Song <jinwoo7.song@samsung.com>2015-06-01 11:35:14 +0900
committerAnthony Ramine <n.oxyde@gmail.com>2015-09-12 01:06:35 +0200
commitd524601cf58f51cd04df908e672a539665ad751b (patch)
treeb50a812b0fc6aa2d9440c9411c8eafe0bb38b0fe /components/layout/display_list_builder.rs
parentf11fcebd9ca460a2eb7ccbdd0c510e8904f36249 (diff)
downloadservo-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.rs4
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())
}
};