aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/mediaquerylist.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-12-06 18:31:46 -0800
committerGitHub <noreply@github.com>2016-12-06 18:31:46 -0800
commit32c121b6ff4a3f9336e742ecf1a96b187986fde0 (patch)
tree678963322c292d39a286a78f299def638d6c2c17 /components/script/dom/mediaquerylist.rs
parentb54cfc9f259e72ea26e68ec8a7b1d617cf0812d3 (diff)
parent535765907d667466636e0fcaa9a7c6a078cf397d (diff)
downloadservo-32c121b6ff4a3f9336e742ecf1a96b187986fde0.tar.gz
servo-32c121b6ff4a3f9336e742ecf1a96b187986fde0.zip
Auto merge of #14473 - nox:raf-safety, r=Ms2ger
Clean up JSTraceable and how we use it <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14473) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/mediaquerylist.rs')
-rw-r--r--components/script/dom/mediaquerylist.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/mediaquerylist.rs b/components/script/dom/mediaquerylist.rs
index 8b77bc4155b..86f67cdd8a1 100644
--- a/components/script/dom/mediaquerylist.rs
+++ b/components/script/dom/mediaquerylist.rs
@@ -143,8 +143,9 @@ impl WeakMediaQueryListVec {
}
}
-impl JSTraceable for WeakMediaQueryListVec {
- fn trace(&self, _: *mut JSTracer) {
+#[allow(unsafe_code)]
+unsafe impl JSTraceable for WeakMediaQueryListVec {
+ unsafe fn trace(&self, _: *mut JSTracer) {
self.cell.borrow_mut().retain_alive()
}
}