Skip to content

Commit

Permalink
Assert that compute_style_difference is only called with eager pseudos.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky committed Jun 27, 2017
1 parent 18ab008 commit 40dd807
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/style/matching.rs
Expand Up @@ -1478,6 +1478,7 @@ pub trait MatchMethods : TElement {
pseudo: Option<&PseudoElement>)
-> StyleDifference
{
debug_assert!(pseudo.map_or(true, |p| p.is_eager()));
if let Some(source) = self.existing_style_for_restyle_damage(old_values, pseudo) {
return RestyleDamage::compute_style_difference(source, new_values)
}
Expand Down

0 comments on commit 40dd807

Please sign in to comment.