From eee6096d50dbe46a22a5bbfd7f15c03988ed2f4b Mon Sep 17 00:00:00 2001 From: Bentaimia Haddadi Date: Tue, 11 Jun 2024 16:46:58 +0200 Subject: [PATCH] Remove the resolve logic from decode task Signed-off-by: Bentaimia Haddadi --- components/script/dom/htmlimageelement.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs index 62bcd94b5f3..ea3a9760f0c 100644 --- a/components/script/dom/htmlimageelement.rs +++ b/components/script/dom/htmlimageelement.rs @@ -1184,11 +1184,6 @@ impl HTMLImageElement { matches!(self.current_request.borrow().state, State::Broken) { self.reject_image_decode_promises(); - } else if matches!( - self.current_request.borrow().state, - State::CompletelyAvailable - ) { - self.resolve_image_decode_promises(); } }