mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Support CORS attributes for image elements.
This commit is contained in:
parent
583536c940
commit
1df8d57dc6
102 changed files with 277 additions and 363 deletions
|
@ -3,6 +3,7 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use crate::image::base::{Image, ImageMetadata};
|
||||
use crate::request::CorsSettings;
|
||||
use crate::FetchResponseMsg;
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
use servo_url::{ImmutableOrigin, ServoUrl};
|
||||
|
@ -111,6 +112,7 @@ pub trait ImageCache: Sync + Send {
|
|||
&self,
|
||||
url: ServoUrl,
|
||||
origin: ImmutableOrigin,
|
||||
cors_setting: Option<CorsSettings>,
|
||||
use_placeholder: UsePlaceholder,
|
||||
can_request: CanRequestImages,
|
||||
) -> Result<ImageOrMetadataAvailable, ImageState>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue