style: Refactor the per_pseudo map from StyleData to avoid having an option value type.

This make the layout code way clearer.
This commit is contained in:
Emilio Cobos Álvarez 2016-02-12 02:11:44 +01:00
parent a604d605ed
commit 61e04df266
7 changed files with 52 additions and 52 deletions

View file

@ -44,7 +44,7 @@ impl OpaqueNode {
}
pub trait TRestyleDamage : BitOr<Output=Self> + Copy {
fn compute(old: &Option<Arc<ComputedValues>>, new: &ComputedValues) -> Self;
fn compute(old: Option<&Arc<ComputedValues>>, new: &ComputedValues) -> Self;
fn rebuild_and_reflow() -> Self;
}