mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Assert that compute_style_difference is only called with eager pseudos.
Gecko bug 1324618 part 3: https://bugzilla.mozilla.org/show_bug.cgi?id=1324618
This commit is contained in:
parent
18ab0087ae
commit
40dd807df3
1 changed files with 1 additions and 0 deletions
|
@ -1478,6 +1478,7 @@ pub trait MatchMethods : TElement {
|
||||||
pseudo: Option<&PseudoElement>)
|
pseudo: Option<&PseudoElement>)
|
||||||
-> StyleDifference
|
-> StyleDifference
|
||||||
{
|
{
|
||||||
|
debug_assert!(pseudo.map_or(true, |p| p.is_eager()));
|
||||||
if let Some(source) = self.existing_style_for_restyle_damage(old_values, pseudo) {
|
if let Some(source) = self.existing_style_for_restyle_damage(old_values, pseudo) {
|
||||||
return RestyleDamage::compute_style_difference(source, new_values)
|
return RestyleDamage::compute_style_difference(source, new_values)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue