Commit e8c6cbf
layout: Normalize the input to euclid's rotation function when creating reference frames
The rotation values we get from Stylo are unnormalized, yet euclid
expects them to be[^1]. This change enusures that before we give the
rotation values to euclid we normalize them. Lucikly, Stylo already has
normalization functionality available so we can reuse it.
[^1]: https://github.com/servo/euclid/blob/main/src/rotation.rs#L276
Signed-off-by: Martin Robinson <mrobinson@abandonedwig.info>1 parent f01d00b commit e8c6cbf
2 files changed
Lines changed: 39 additions & 0 deletions
File tree
- css
- css-transforms
- filter-effects
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments