aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/canvas_state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/canvas_state.rs')
-rw-r--r--components/script/canvas_state.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/canvas_state.rs b/components/script/canvas_state.rs
index 7e9286bac7d..4d3b23d310d 100644
--- a/components/script/canvas_state.rs
+++ b/components/script/canvas_state.rs
@@ -607,7 +607,7 @@ impl CanvasState {
) -> (Rect<f64>, Rect<f64>) {
let image_rect = Rect::new(
Point2D::new(0f64, 0f64),
- Size2D::new(image_size.width as f64, image_size.height as f64),
+ Size2D::new(image_size.width, image_size.height),
);
// The source rectangle is the rectangle whose corners are the four points (sx, sy),