mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Stop using the deprecated range function in canvas_paint_task.
This commit is contained in:
parent
86ce20dca3
commit
cb46a5788d
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ impl<'a> CanvasPaintTask<'a> {
|
|||
//start offset of the copyable rectangle
|
||||
let mut src = (src_read_rect.origin.y * stride + src_read_rect.origin.x * 4) as usize;
|
||||
//copy the data to the destination vector
|
||||
for _ in range(0, src_read_rect.size.height) {
|
||||
for _ in 0..src_read_rect.size.height {
|
||||
let row = &src_data[src .. src + (4 * src_read_rect.size.width) as usize];
|
||||
image_data.push_all(row);
|
||||
src += stride as usize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue