mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update euclid to 0.18
This commit is contained in:
parent
88664912ed
commit
9e446971a8
27 changed files with 78 additions and 82 deletions
|
@ -16,7 +16,7 @@ app_units = "0.6.1"
|
|||
atomic_refcell = "0.1"
|
||||
bitflags = "1.0"
|
||||
canvas_traits = {path = "../canvas_traits"}
|
||||
euclid = "0.17"
|
||||
euclid = "0.18"
|
||||
fnv = "1.0"
|
||||
gfx = {path = "../gfx"}
|
||||
gfx_traits = {path = "../gfx_traits"}
|
||||
|
|
|
@ -2370,7 +2370,7 @@ impl BlockFlowDisplayListBuilding for BlockFlow {
|
|||
clip.size.height.to_f32_px(),
|
||||
);
|
||||
|
||||
let clip = transform.transform_rect(&clip);
|
||||
let clip = transform.transform_rect(&clip).unwrap();
|
||||
|
||||
rect(
|
||||
Au::from_f32_px(clip.origin.x),
|
||||
|
|
|
@ -99,7 +99,7 @@ pub fn iterate_through_flow_tree_fragment_border_boxes(root: &mut Flow, iterator
|
|||
if let Some(matrix) = kid.as_block()
|
||||
.fragment
|
||||
.transform_matrix(&relative_position) {
|
||||
let transform_matrix = matrix.transform_point2d(&LayoutPoint::zero());
|
||||
let transform_matrix = matrix.transform_point2d(&LayoutPoint::zero()).unwrap();
|
||||
stacking_context_position = stacking_context_position +
|
||||
Vector2D::new(Au::from_f32_px(transform_matrix.x),
|
||||
Au::from_f32_px(transform_matrix.y))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue