mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Use the origin of the actual image response when determining if a canvas is origin clean.
This commit is contained in:
parent
d855c929ef
commit
5acee23f5d
22 changed files with 79 additions and 92 deletions
|
@ -25,7 +25,7 @@ pub enum CanRequestImages {
|
|||
/// Indicating either entire image or just metadata availability
|
||||
#[derive(Clone, Deserialize, Serialize, HeapSizeOf)]
|
||||
pub enum ImageOrMetadataAvailable {
|
||||
ImageAvailable(Arc<Image>),
|
||||
ImageAvailable(Arc<Image>, ServoUrl),
|
||||
MetadataAvailable(ImageMetadata),
|
||||
}
|
||||
|
||||
|
@ -63,11 +63,11 @@ impl ImageResponder {
|
|||
#[derive(Clone, Deserialize, Serialize, HeapSizeOf)]
|
||||
pub enum ImageResponse {
|
||||
/// The requested image was loaded.
|
||||
Loaded(Arc<Image>),
|
||||
Loaded(Arc<Image>, ServoUrl),
|
||||
/// The request image metadata was loaded.
|
||||
MetadataLoaded(ImageMetadata),
|
||||
/// The requested image failed to load, so a placeholder was loaded instead.
|
||||
PlaceholderLoaded(Arc<Image>),
|
||||
PlaceholderLoaded(Arc<Image>, ServoUrl),
|
||||
/// Neither the requested image nor the placeholder could be loaded.
|
||||
None,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue