aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2024-05-13 18:01:44 +0200
committerGitHub <noreply@github.com>2024-05-13 16:01:44 +0000
commita483cb5144024cadda593bebcddad293dc927d97 (patch)
tree14f7c59b7f53cdba64ae94fd414fc06921331dec /components/script/dom
parentc0494e2e832fed4aef447bb67403d37c3de6d003 (diff)
downloadservo-a483cb5144024cadda593bebcddad293dc927d97.tar.gz
servo-a483cb5144024cadda593bebcddad293dc927d97.zip
Fix RefCell borrows (#32276)
* Fix RefCell borrows * Update document.rs fmt
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/document.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index ddd3749bca3..dc55761b02f 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -3258,11 +3258,10 @@ impl Document {
return;
}
- *self.mouse_move_event_index.borrow_mut() =
- Some(self.pending_compositor_events.borrow().len());
+ *self.mouse_move_event_index.borrow_mut() = Some(pending_compositor_events.len());
}
- self.pending_compositor_events.borrow_mut().push(event);
+ pending_compositor_events.push(event);
}
/// Get pending compositor events, for processing within an `update_the_rendering` task.