diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-01-16 17:46:27 +0100 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-01-26 08:59:21 +0100 |
commit | 423cc34cb00c698313c67a0edcbc6721ecf04f4f (patch) | |
tree | 46f5231f40db8052fc2979ab72594f1e44501136 /components/layout/display_list/builder.rs | |
parent | 4f355f5877878bb2f4aed2b471e82722cd43f8e1 (diff) | |
download | servo-423cc34cb00c698313c67a0edcbc6721ecf04f4f.tar.gz servo-423cc34cb00c698313c67a0edcbc6721ecf04f4f.zip |
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.
Diffstat (limited to 'components/layout/display_list/builder.rs')
-rw-r--r-- | components/layout/display_list/builder.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/display_list/builder.rs b/components/layout/display_list/builder.rs index 5fb9f89a77d..7dc85fec830 100644 --- a/components/layout/display_list/builder.rs +++ b/components/layout/display_list/builder.rs @@ -834,7 +834,7 @@ impl Fragment { index, ); - if placement.tile_size.is_empty_or_negative() { + if placement.tile_size.is_empty() { return; } @@ -2321,7 +2321,7 @@ impl BlockFlow { .fragment .perspective_matrix(&border_box) .unwrap_or(LayoutTransform::identity()); - let transform = transform.pre_transform(&perspective).inverse(); + let transform = perspective.then(&transform).inverse(); let origin = border_box.origin; let transform_clip = |clip: Rect<Au>| { @@ -2346,7 +2346,7 @@ impl BlockFlow { clip.size.height.to_f32_px(), ); - let clip = transform.transform_rect(&clip).unwrap(); + let clip = transform.outer_transformed_rect(&clip).unwrap(); rect( Au::from_f32_px(clip.origin.x), |