Bump euclid to 0.22

- Also updates raqote to latest with an upgrade of font-kit to 0.11
  applied on as a patch
- Update lyon_geom to the latest version

Major change:

- All matrices are now stored in row major order. This means that
  parameters to rotation functions no longer should be negated.
- `post_...()` functions are now named `then()`. `pre_transform()` is removed,
  so `then()` is used and the order of operations changed.
This commit is contained in:
Martin Robinson 2023-01-16 17:46:27 +01:00
parent 4f355f5877
commit 423cc34cb0
56 changed files with 233 additions and 220 deletions

View file

@ -18,7 +18,7 @@ atomic_refcell = "0.1.6"
canvas_traits = { path = "../canvas_traits" }
cssparser = "0.29"
embedder_traits = { path = "../embedder_traits" }
euclid = "0.20"
euclid = "0.22"
fnv = "1.0"
fxhash = "0.2"
gfx = { path = "../gfx" }

View file

@ -802,7 +802,7 @@ impl BoxFragment {
),
(Some(transform), None) => (transform, wr::ReferenceFrameKind::Transform),
(Some(transform), Some(perspective)) => (
transform.pre_transform(&perspective),
perspective.then(&transform),
wr::ReferenceFrameKind::Perspective {
scrolling_relative_to: None,
},
@ -861,11 +861,7 @@ impl BoxFragment {
-transform_origin_z,
);
Some(
pre_transform
.pre_transform(&transform)
.pre_transform(&post_transform),
)
Some(post_transform.then(&transform).then(&pre_transform))
}
/// Returns the 4D matrix representing this fragment's perspective.
@ -903,9 +899,9 @@ impl BoxFragment {
);
Some(
pre_transform
.pre_transform(&perspective_matrix)
.pre_transform(&post_transform),
post_transform
.then(&perspective_matrix)
.then(&pre_transform),
)
},
Perspective::None => None,