mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix GC borrow hazard in HTMLImageElement::finish_reacting_to_environment_change (#33904)
* Fix GC borrow hazard in HTMLImageElement::finish_reacting_to_environment_change Signed-off-by: L Ashwin B <lashwinib@gmail.com> * Fixed clippy error Signed-off-by: L Ashwin B <lashwinib@gmail.com> --------- Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
2af81fb097
commit
c242822eeb
1 changed files with 1 additions and 1 deletions
|
@ -1271,8 +1271,8 @@ impl HTMLImageElement {
|
||||||
|
|
||||||
// Step 15.5
|
// Step 15.5
|
||||||
mem::swap(&mut this.current_request.borrow_mut(), &mut pending_request);
|
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
|
// Step 15.6
|
||||||
this.upcast::<Node>().dirty(NodeDamage::OtherNodeDamage);
|
this.upcast::<Node>().dirty(NodeDamage::OtherNodeDamage);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue