mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement cross origin resource policy check
I removed the window getter usage from those tests as servo does not support that yet.
This commit is contained in:
parent
6aec2c8594
commit
8249be38c9
14 changed files with 98 additions and 133 deletions
|
@ -113,7 +113,7 @@ impl<'a> LayoutContext<'a> {
|
|||
}
|
||||
|
||||
match self.get_or_request_image_or_meta(node, url.clone(), use_placeholder) {
|
||||
Some(ImageOrMetadataAvailable::ImageAvailable(image, _)) => {
|
||||
Some(ImageOrMetadataAvailable::ImageAvailable { image, .. }) => {
|
||||
let image_info = WebRenderImageInfo {
|
||||
width: image.width,
|
||||
height: image.height,
|
||||
|
|
|
@ -125,7 +125,7 @@ impl ReplacedContent {
|
|||
image_url.clone(),
|
||||
UsePlaceholder::No,
|
||||
) {
|
||||
Some(ImageOrMetadataAvailable::ImageAvailable(image, _)) => {
|
||||
Some(ImageOrMetadataAvailable::ImageAvailable { image, .. }) => {
|
||||
(Some(image.clone()), image.width as f32, image.height as f32)
|
||||
},
|
||||
Some(ImageOrMetadataAvailable::MetadataAvailable(metadata)) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue