mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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;
|
||||
}
|
||||
for dep in deps {
|
||||
debug_assert!(state_changes.intersects(dep.sensitivities.states) ||
|
||||
attrs_changed && dep.sensitivities.attrs,
|
||||
"Testing a completely ineffective dependency?");
|
||||
if !hint.intersects(dep.hint) {
|
||||
debug_assert!((!state_changes.is_empty() && !dep.sensitivities.states.is_empty()) ||
|
||||
(attrs_changed && dep.sensitivities.attrs),
|
||||
"Testing a known ineffective dependency?");
|
||||
if (attrs_changed || state_changes.intersects(dep.sensitivities.states)) && !hint.intersects(dep.hint) {
|
||||
let matched_then =
|
||||
matches_complex_selector(&dep.selector, snapshot, None,
|
||||
&mut StyleRelations::empty());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue