style: Refactor the cascade function.

The `cascade_primary_or_pseudo` function was nice when we shared more code, but
right now I think it just makes it harder to understand what's going on.
This commit is contained in:
Emilio Cobos Álvarez 2017-05-17 15:12:18 +02:00
parent 8375319928
commit e8d1c5316d
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
6 changed files with 72 additions and 94 deletions

View file

@ -37,7 +37,7 @@ pub use gecko::restyle_damage::GeckoRestyleDamage as RestyleDamage;
/// A type that represents the previous computed values needed for restyle
/// damage calculation.
#[cfg(feature = "servo")]
pub type PreExistingComputedValues = ::stylearc::Arc<::properties::ServoComputedValues>;
pub type PreExistingComputedValues = ::properties::ServoComputedValues;
/// A type that represents the previous computed values needed for restyle
/// damage calculation.