mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -132,7 +132,6 @@ pub mod values;
|
|||
pub mod viewport;
|
||||
|
||||
use std::fmt;
|
||||
use std::sync::Arc;
|
||||
use style_traits::ToCss;
|
||||
|
||||
#[cfg(feature = "gecko")] pub use gecko_string_cache as string_cache;
|
||||
|
@ -177,14 +176,6 @@ macro_rules! reexport_computed_values {
|
|||
}
|
||||
longhand_properties_idents!(reexport_computed_values);
|
||||
|
||||
/// Returns whether the two arguments point to the same value.
|
||||
///
|
||||
/// FIXME: Remove this and use Arc::ptr_eq once we require Rust 1.17
|
||||
#[inline]
|
||||
pub fn arc_ptr_eq<T: 'static>(a: &Arc<T>, b: &Arc<T>) -> bool {
|
||||
ptr_eq::<T>(&**a, &**b)
|
||||
}
|
||||
|
||||
/// Pointer equality
|
||||
///
|
||||
/// FIXME: Remove this and use std::ptr::eq once we require Rust 1.17
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue