mirror of
https://github.com/servo/servo.git
synced 2025-06-04 07:35:36 +00:00
Use the correct .png extension for the image placeholder.
This was changed to the mozilla broken image resource without changing the filename, even though the file type changed.
This commit is contained in:
parent
4f855dc63a
commit
135bcacee4
3 changed files with 2 additions and 2 deletions
|
@ -460,7 +460,7 @@ pub fn new_image_cache_task(resource_task: ResourceTask) -> ImageCacheTask {
|
|||
|
||||
// Preload the placeholder image, used when images fail to load.
|
||||
let mut placeholder_path = resources_dir_path();
|
||||
placeholder_path.push("rippy.jpg");
|
||||
placeholder_path.push("rippy.png");
|
||||
|
||||
let mut image_data = vec![];
|
||||
let result = File::open(&placeholder_path).and_then(|mut file| {
|
||||
|
|
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 253 B |
|
@ -1 +1 @@
|
|||
<img width="100px" height="100px" src="rippy.jpg">
|
||||
<img width="100px" height="100px" src="rippy.png">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue