aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlimageelement.rs
diff options
context:
space:
mode:
authorSimon Wülker <simon.wuelker@arcor.de>2024-10-17 15:09:48 +0200
committerGitHub <noreply@github.com>2024-10-17 13:09:48 +0000
commit4a58616770214ead82da015f375fc5df59ad648c (patch)
treeb645590d4f889f141f176b035c86aaacb68426c1 /components/script/dom/htmlimageelement.rs
parent595aab10dccb3603bf60ff25eb45c4715a75ecb9 (diff)
downloadservo-4a58616770214ead82da015f375fc5df59ad648c.tar.gz
servo-4a58616770214ead82da015f375fc5df59ad648c.zip
Fix type mismatches in Router::add_route calls (#33882)
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r--components/script/dom/htmlimageelement.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs
index 32818d400e3..7d818e4a803 100644
--- a/components/script/dom/htmlimageelement.rs
+++ b/components/script/dom/htmlimageelement.rs
@@ -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);
}