mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Move image fetching methods to SharedLayoutContext.
This commit is contained in:
parent
f863a7c317
commit
0cb0c6bc4e
3 changed files with 16 additions and 14 deletions
|
@ -370,7 +370,7 @@ impl ImageFragmentInfo {
|
|||
pub fn new<N: ThreadSafeLayoutNode>(node: &N, url: Option<Url>,
|
||||
layout_context: &LayoutContext) -> ImageFragmentInfo {
|
||||
let image_or_metadata = url.and_then(|url| {
|
||||
layout_context.get_or_request_image_or_meta(url, UsePlaceholder::Yes)
|
||||
layout_context.shared.get_or_request_image_or_meta(url, UsePlaceholder::Yes)
|
||||
});
|
||||
|
||||
let (image, metadata) = match image_or_metadata {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue