aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/image_cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/net/image_cache.rs')
-rw-r--r--components/net/image_cache.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/net/image_cache.rs b/components/net/image_cache.rs
index 46a2a4ea111..8276baa07e7 100644
--- a/components/net/image_cache.rs
+++ b/components/net/image_cache.rs
@@ -66,10 +66,10 @@ fn set_webrender_image_key(compositor_api: &CrossProcessCompositorApi, image: &m
return;
}
let mut bytes = Vec::new();
- let frame_bytes = image.bytes();
+ let frame_bytes = image.first_frame().bytes;
let is_opaque = match image.format {
PixelFormat::BGRA8 => {
- bytes.extend_from_slice(&frame_bytes);
+ bytes.extend_from_slice(frame_bytes);
pixels::rgba8_premultiply_inplace(bytes.as_mut_slice())
},
PixelFormat::RGB8 => {