mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Auto merge of #7605 - nox:skew, r=mbrubeck
Implement "transform: skew()" Thanks to @Jinwoo-Song for the original commit, which I just rebased and cleaned up. Fixes #6237. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7605) <!-- Reviewable:end -->
This commit is contained in:
commit
6a12f00d6d
29 changed files with 259 additions and 118 deletions
|
@ -76,7 +76,7 @@ libc = "0.1"
|
|||
smallvec = "0.1"
|
||||
string_cache = "0.1"
|
||||
string_cache_plugin = "0.1"
|
||||
euclid = "0.1"
|
||||
euclid = "0.2"
|
||||
serde = "0.5"
|
||||
serde_macros = "0.5"
|
||||
serde_json = "0.5"
|
||||
|
|
|
@ -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())
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue