mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
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:
parent
8375319928
commit
e8d1c5316d
6 changed files with 72 additions and 94 deletions
|
@ -389,7 +389,7 @@ pub trait TElement : Eq + PartialEq + Debug + Hash + Sized + Copy + Clone +
|
|||
/// values as an argument here, but otherwise Servo would crash due to
|
||||
/// double borrows to return it.
|
||||
fn existing_style_for_restyle_damage<'a>(&'a self,
|
||||
current_computed_values: &'a Arc<ComputedValues>,
|
||||
current_computed_values: &'a ComputedValues,
|
||||
pseudo: Option<&PseudoElement>)
|
||||
-> Option<&'a PreExistingComputedValues>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue