aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorAvi Weinstock <aweinstock314@gmail.com>2015-03-03 09:06:45 -0500
committerAvi Weinstock <aweinstock314@gmail.com>2015-03-03 09:06:45 -0500
commitbcc27d9bd01f973bf9f48c6e310e235ee02a8c99 (patch)
treeefce18bf7fcfcfd43ea913899bd3ec016e12da4a /components/script/dom
parent315a2349e8e0064be3d8ba1ab42cdd38ff3451a7 (diff)
downloadservo-bcc27d9bd01f973bf9f48c6e310e235ee02a8c99.tar.gz
servo-bcc27d9bd01f973bf9f48c6e310e235ee02a8c99.zip
Replace borrow with borrow_for_gc_trace in JSTraceable::trace (Issue #4778).
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/bindings/cell.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/bindings/cell.rs b/components/script/dom/bindings/cell.rs
index 81085256821..18ea62d7106 100644
--- a/components/script/dom/bindings/cell.rs
+++ b/components/script/dom/bindings/cell.rs
@@ -94,7 +94,9 @@ impl<T> DOMRefCell<T> {
impl<T: JSTraceable> JSTraceable for DOMRefCell<T> {
fn trace(&self, trc: *mut JSTracer) {
- (*self).borrow().trace(trc)
+ unsafe {
+ (*self).borrow_for_gc_trace().trace(trc)
+ }
}
}