Align canvas.putImageData with spec

The arguments are supposed to be long values, not floats.
This commit is contained in:
Anthony Ramine 2018-10-04 12:11:39 +02:00
parent 62ea3c093a
commit 3d910feb3a
5 changed files with 35 additions and 44 deletions

View file

@ -54,7 +54,7 @@ pub enum Canvas2dMsg {
IsPointInPath(f64, f64, FillRule, IpcSender<bool>),
LineTo(Point2D<f32>),
MoveTo(Point2D<f32>),
PutImageData(ByteBuf, Vector2D<f64>, Size2D<f64>, Rect<f64>),
PutImageData(ByteBuf, Vector2D<i32>, Size2D<i32>, Rect<i32>),
QuadraticCurveTo(Point2D<f32>, Point2D<f32>),
Rect(Rect<f32>),
RestoreContext,