Skip to content

Commit

Permalink
Fix GC borrow hazard in HTMLImageElement::finish_reacting_to_environm…
Browse files Browse the repository at this point in the history
…ent_change (servo#33904)

* Fix GC borrow hazard in HTMLImageElement::finish_reacting_to_environment_change

Signed-off-by: L Ashwin B <[email protected]>

* Fixed clippy error

Signed-off-by: L Ashwin B <[email protected]>

---------

Signed-off-by: L Ashwin B <[email protected]>
  • Loading branch information
chickenleaf authored Oct 19, 2024
1 parent 2af81fb commit c242822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/dom/htmlimageelement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1271,8 +1271,8 @@ impl HTMLImageElement {

// Step 15.5
mem::swap(&mut this.current_request.borrow_mut(), &mut pending_request);
this.abort_request(State::Unavailable, ImageRequestPhase::Pending, CanGc::note());
}
this.abort_request(State::Unavailable, ImageRequestPhase::Pending, CanGc::note());

// Step 15.6
this.upcast::<Node>().dirty(NodeDamage::OtherNodeDamage);
Expand Down

0 comments on commit c242822

Please sign in to comment.