mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update euclid
This commit is contained in:
parent
b944a6e281
commit
fccfff11c5
15 changed files with 5 additions and 84 deletions
|
@ -1057,7 +1057,7 @@ impl<'a> CanvasData<'a> {
|
|||
self.drawtarget.get_format(),
|
||||
);
|
||||
let matrix = Transform2D::identity()
|
||||
.pre_translate(-source_rect.origin.to_vector().cast())
|
||||
.pre_translate(-source_rect.origin.to_vector().cast::<f32>())
|
||||
.pre_transform(&self.state.transform);
|
||||
draw_target.set_transform(&matrix);
|
||||
draw_target
|
||||
|
@ -1198,22 +1198,6 @@ impl RectToi32 for Rect<f64> {
|
|||
}
|
||||
}
|
||||
|
||||
pub trait Size2DExt {
|
||||
fn to_u64(&self) -> Size2D<u64>;
|
||||
}
|
||||
|
||||
impl Size2DExt for Size2D<f64> {
|
||||
fn to_u64(&self) -> Size2D<u64> {
|
||||
self.cast()
|
||||
}
|
||||
}
|
||||
|
||||
impl Size2DExt for Size2D<u32> {
|
||||
fn to_u64(&self) -> Size2D<u64> {
|
||||
self.cast()
|
||||
}
|
||||
}
|
||||
|
||||
pub trait RectExt {
|
||||
fn to_u64(&self) -> Rect<u64>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue