mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Fix debug assertion introduced in #13108 by me.
I'm stupid, and when I did the last moving-the-code-around, I failed miserably to double-check it in a debug build.
This commit is contained in:
parent
8695552052
commit
b9d91929aa
1 changed files with 4 additions and 4 deletions
|
@ -470,10 +470,10 @@ impl DependencySet {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for dep in deps {
|
for dep in deps {
|
||||||
debug_assert!(state_changes.intersects(dep.sensitivities.states) ||
|
debug_assert!((!state_changes.is_empty() && !dep.sensitivities.states.is_empty()) ||
|
||||||
attrs_changed && dep.sensitivities.attrs,
|
(attrs_changed && dep.sensitivities.attrs),
|
||||||
"Testing a completely ineffective dependency?");
|
"Testing a known ineffective dependency?");
|
||||||
if !hint.intersects(dep.hint) {
|
if (attrs_changed || state_changes.intersects(dep.sensitivities.states)) && !hint.intersects(dep.hint) {
|
||||||
let matched_then =
|
let matched_then =
|
||||||
matches_complex_selector(&dep.selector, snapshot, None,
|
matches_complex_selector(&dep.selector, snapshot, None,
|
||||||
&mut StyleRelations::empty());
|
&mut StyleRelations::empty());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue