style: Avoid blanket Sync for GeckoStyleSheet, use a more isolated wrapper.

This commit is contained in:
Emilio Cobos Álvarez 2017-08-22 00:52:07 +02:00
parent 0701c0c953
commit c73ec5e649
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 30 additions and 4 deletions

View file

@ -23,8 +23,6 @@ use stylist::{ExtraStyleData, Stylist};
#[derive(PartialEq, Eq, Debug)]
pub struct GeckoStyleSheet(*const ServoStyleSheet);
unsafe impl Sync for GeckoStyleSheet {}
impl ToMediaListKey for ::gecko::data::GeckoStyleSheet {
fn to_media_list_key(&self) -> MediaListKey {
use std::mem;