aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlimageelement.rs
diff options
context:
space:
mode:
authorchickenleaf <lashwinib@gmail.com>2024-10-20 02:33:03 +0530
committerGitHub <noreply@github.com>2024-10-19 21:03:03 +0000
commitc242822eebb75bcf0b0e10102d3cc49e9044a658 (patch)
tree44af780ba25b4c583b454307a59b0c8aae2a2782 /components/script/dom/htmlimageelement.rs
parent2af81fb09732fac71c38f4e261e29803f490b0ea (diff)
downloadservo-c242822eebb75bcf0b0e10102d3cc49e9044a658.tar.gz
servo-c242822eebb75bcf0b0e10102d3cc49e9044a658.zip
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>
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r--components/script/dom/htmlimageelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs
index d2bfff7721d..39fded6b07e 100644
--- a/components/script/dom/htmlimageelement.rs
+++ b/components/script/dom/htmlimageelement.rs
@@ -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);