servo/components/net_traits
bors-servo 0c740cf996
Auto merge of #28893 - EnnuiL:master, r=jdm
Update to image 0.24.2, implement WebP support

<!-- Please describe your changes on the following line: -->
This PR updates image to 0.24.2 and implements WebP support. I've been watching the progress on image-rs's WebP implementation, and from what I've seen, the situation has changed from "can only decode the luma channel from lossy WebPs" to pretty much full support (with image 0.24.2 implementing support for the extended WebP format).

Here are screenshots of it viewing the WebP page's example:
<details>
<summary>Screenshots</summary>

Servo viewing the main WebP gallery:
![A screenshot of Servo viewing the WebP Gallery](https://user-images.githubusercontent.com/85590273/167732100-957fe4a9-1752-491b-90e4-ffb2aa0552a4.png)
Servo viewing a lossless example from WebP's Lossless and Alpha Demonstration:
![A screenshot of Servo viewing the lossless version of the "Transparent compass card for overlays" example from WebP's Lossless and Alpha Demonstration](https://user-images.githubusercontent.com/85590273/167732333-d082c9d0-e390-49c1-bfb0-9ba3e717367c.png)
Servo viewing a lossy-with-alpha example from WebP's Lossless and Alpha Demonstration
![A screenshot of Servo viewing the lossy-with-alpha version of the "Transparent compass card for overlays" example from WebP's Lossless and Alpha Demonstration](https://user-images.githubusercontent.com/85590273/167731987-393f4931-4276-4cfb-94da-adacb07e5ca9.png)
</details>

This also changes the package name from `piston_image` to simply `image`. It appeared to be a piece of legacy from ages ago which can be safely changed now.

(PS: I'm still pretty new at Rust, please let me know if I have done any mistakes in the process)

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #20045 (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2022-08-15 18:16:23 -04:00
..
image Implement WebP support 2022-05-10 18:40:19 -03:00
tests Implement WebP support 2022-05-10 18:40:19 -03:00
blob_url_store.rs check same-origin and url against the blob beign revoked 2019-11-18 22:44:07 +09:00
Cargo.toml Implement WebP support 2022-05-10 18:40:19 -03:00
filemanager_thread.rs Fix some Clippy lints. 2022-08-04 00:13:36 +08:00
image_cache.rs Don't send a load event when a loaded image is actually the placeholder 2020-05-08 19:15:24 +02:00
lib.rs Upgrade Hyper 2022-01-16 09:34:17 -08:00
pub_domains.rs Fix some warnings 2018-12-28 15:31:08 +01:00
quality.rs Fix some warnings 2018-12-28 15:31:08 +01:00
request.rs Upgrade Hyper 2022-01-16 09:34:17 -08:00
response.rs Fix some Clippy lints. 2022-08-04 00:13:36 +08:00
storage_thread.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00