Skip to content

Commit

Permalink
Remove the resolve logic from decode task
Browse files Browse the repository at this point in the history
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
  • Loading branch information
Taym95 committed Jun 11, 2024
1 parent 35aacbe commit eee6096
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions components/script/dom/htmlimageelement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit eee6096

Please sign in to comment.