mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use StyleArc in the style system.
MozReview-Commit-ID: flF0fv9E9M
This commit is contained in:
parent
6d8fc600b8
commit
d78ca4c4f9
37 changed files with 49 additions and 54 deletions
|
@ -10,7 +10,7 @@ use atomic_refcell::{AtomicRefCell, AtomicRef, AtomicRefMut};
|
|||
use parking_lot::RwLock;
|
||||
use std::cell::UnsafeCell;
|
||||
use std::fmt;
|
||||
use std::sync::Arc;
|
||||
use stylearc::Arc;
|
||||
|
||||
/// A shared read/write lock that can protect multiple objects.
|
||||
///
|
||||
|
@ -149,7 +149,7 @@ impl<T: fmt::Debug> fmt::Debug for Locked<T> {
|
|||
impl<T> Locked<T> {
|
||||
#[cfg(feature = "servo")]
|
||||
fn same_lock_as(&self, lock: &SharedRwLock) -> bool {
|
||||
::arc_ptr_eq(&self.shared_lock.arc, &lock.arc)
|
||||
Arc::ptr_eq(&self.shared_lock.arc, &lock.arc)
|
||||
}
|
||||
|
||||
#[cfg(feature = "gecko")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue