We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7665309 commit a080474Copy full SHA for a080474
components/net/image_cache.rs
@@ -735,7 +735,7 @@ impl ImageCache for ImageCacheImpl {
735
let requested_size = {
736
let width = size.width.try_into().unwrap_or(0);
737
let height = size.height.try_into().unwrap_or(0);
738
- tiny_skia::IntSize::from_wh(width, height).unwrap()
+ tiny_skia::IntSize::from_wh(width, height).unwrap_or(natural_size)
739
};
740
let transform = tiny_skia::Transform::from_scale(
741
requested_size.width() as f32 / natural_size.width() as f32,
0 commit comments