mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix type mismatches in Router::add_route calls (#33882)
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
595aab10dc
commit
4a58616770
2 changed files with 4 additions and 4 deletions
|
@ -1084,14 +1084,14 @@ impl HTMLImageElement {
|
|||
// Return the image via a message to the script thread, which marks
|
||||
// the element as dirty and triggers a reflow.
|
||||
let element = trusted_node.clone();
|
||||
let image = message.to().unwrap();
|
||||
let image: PendingImageResponse = message.to().unwrap();
|
||||
let selected_source_clone = selected_source.clone();
|
||||
let _ = task_source.queue_with_canceller(
|
||||
task!(process_image_response_for_environment_change: move || {
|
||||
let element = element.root();
|
||||
// Ignore any image response for a previous request that has been discarded.
|
||||
if generation == element.generation.get() {
|
||||
element.process_image_response_for_environment_change(image,
|
||||
element.process_image_response_for_environment_change(image.response,
|
||||
USVString::from(selected_source_clone), generation,
|
||||
selected_pixel_density, can_gc);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue