From 7879461f7fcd44bc8085fab3d5fb78777815c00b Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Tue, 7 Aug 2018 14:46:56 -0400 Subject: [PATCH] Bug 1480433 - Update for API changes in WR PR 2948. r=jrmuizel MozReview-Commit-ID: Linx9qsVeAb --- gfx/webrender_bindings/src/moz2d_renderer.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gfx/webrender_bindings/src/moz2d_renderer.rs b/gfx/webrender_bindings/src/moz2d_renderer.rs index e98c22edeaf18..48490a8b72a46 100644 --- a/gfx/webrender_bindings/src/moz2d_renderer.rs +++ b/gfx/webrender_bindings/src/moz2d_renderer.rs @@ -383,7 +383,12 @@ impl AsyncBlobImageRasterizer for Moz2dBlobRasterizer { MutByteSlice::new(output.as_mut_slice()), ) { Ok(RasterizedBlobImage { - size: descriptor.size, + rasterized_rect: item.dirty_rect.unwrap_or( + DeviceUintRect { + origin: DeviceUintPoint::origin(), + size: descriptor.size, + } + ), data: Arc::new(output), }) } else {