diff options
author | Avi Weinstock <aweinstock314@gmail.com> | 2015-03-03 09:06:45 -0500 |
---|---|---|
committer | Avi Weinstock <aweinstock314@gmail.com> | 2015-03-03 09:06:45 -0500 |
commit | bcc27d9bd01f973bf9f48c6e310e235ee02a8c99 (patch) | |
tree | efce18bf7fcfcfd43ea913899bd3ec016e12da4a | |
parent | 315a2349e8e0064be3d8ba1ab42cdd38ff3451a7 (diff) | |
download | servo-bcc27d9bd01f973bf9f48c6e310e235ee02a8c99.tar.gz servo-bcc27d9bd01f973bf9f48c6e310e235ee02a8c99.zip |
Replace borrow with borrow_for_gc_trace in JSTraceable::trace (Issue #4778).
-rw-r--r-- | components/script/dom/bindings/cell.rs | 4 |
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) + } } } |