mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
style: Avoid blanket Sync for GeckoStyleSheet, use a more isolated wrapper.
This commit is contained in:
parent
0701c0c953
commit
c73ec5e649
2 changed files with 30 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue