aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/trace.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-07-04 15:39:40 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2018-07-30 14:21:42 +0200
commit25a74a75eaca196b1bd7a999aba42f8ac54202f4 (patch)
tree1d15177b2bd3acd341c46a9d8bf741f0e8da92b9 /components/script/dom/bindings/trace.rs
parentcb16c596b3ed3492ca327fa6033f1121e4e379fe (diff)
downloadservo-25a74a75eaca196b1bd7a999aba42f8ac54202f4.tar.gz
servo-25a74a75eaca196b1bd7a999aba42f8ac54202f4.zip
Create AudioBuffer from BaseAudioContext
Diffstat (limited to 'components/script/dom/bindings/trace.rs')
-rw-r--r--components/script/dom/bindings/trace.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs
index 1adfa2d0f23..b84651c8c8a 100644
--- a/components/script/dom/bindings/trace.rs
+++ b/components/script/dom/bindings/trace.rs
@@ -590,9 +590,9 @@ unsafe impl<U> JSTraceable for TypedSize2D<f32, U> {
}
}
-unsafe impl JSTraceable for Mutex<Option<SharedRt>> {
- unsafe fn trace(&self, _trc: *mut JSTracer) {
- // Do nothing.
+unsafe impl<T: JSTraceable> JSTraceable for Mutex<T> {
+ unsafe fn trace(&self, trc: *mut JSTracer) {
+ self.lock().unwrap().trace(trc);
}
}