mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix the layout 2020 build after euclid upgrade
The euclid upgrade included some backward incompatible changes to the API. This changes updates a few function calls that used the old names.
This commit is contained in:
parent
af3871299c
commit
2440f71f9a
1 changed files with 7 additions and 13 deletions
|
@ -355,7 +355,7 @@ impl StackingContext {
|
|||
if let Some(transformed) = reference_frame_data
|
||||
.transform
|
||||
.inverse()
|
||||
.and_then(|inversed| inversed.transform_rect(&painting_area))
|
||||
.and_then(|inversed| inversed.outer_transformed_rect(&painting_area))
|
||||
{
|
||||
painting_area = transformed
|
||||
} else {
|
||||
|
@ -850,12 +850,12 @@ impl BoxFragment {
|
|||
.px();
|
||||
let transform_origin_z = transform_origin.depth.px();
|
||||
|
||||
let pre_transform = LayoutTransform::create_translation(
|
||||
let pre_transform = LayoutTransform::translation(
|
||||
transform_origin_x,
|
||||
transform_origin_y,
|
||||
transform_origin_z,
|
||||
);
|
||||
let post_transform = LayoutTransform::create_translation(
|
||||
let post_transform = LayoutTransform::translation(
|
||||
-transform_origin_x,
|
||||
-transform_origin_y,
|
||||
-transform_origin_z,
|
||||
|
@ -883,16 +883,10 @@ impl BoxFragment {
|
|||
.px(),
|
||||
);
|
||||
|
||||
let pre_transform = LayoutTransform::create_translation(
|
||||
perspective_origin.x,
|
||||
perspective_origin.y,
|
||||
0.0,
|
||||
);
|
||||
let post_transform = LayoutTransform::create_translation(
|
||||
-perspective_origin.x,
|
||||
-perspective_origin.y,
|
||||
0.0,
|
||||
);
|
||||
let pre_transform =
|
||||
LayoutTransform::translation(perspective_origin.x, perspective_origin.y, 0.0);
|
||||
let post_transform =
|
||||
LayoutTransform::translation(-perspective_origin.x, -perspective_origin.y, 0.0);
|
||||
|
||||
let perspective_matrix = LayoutTransform::from_untyped(
|
||||
&transform::create_perspective_matrix(length.px()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue