aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
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)
+ }
}
}