mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
stylo: Fix restyle hints check.
It's clearly wrong to use intersects() there, since the coming check may be a bigger hint. MozReview-Commit-ID: 1YZ8OD0ajSz Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
a0c2bdf775
commit
fcce61ee10
1 changed files with 1 additions and 1 deletions
|
@ -684,7 +684,7 @@ impl DependencySet {
|
|||
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) {
|
||||
if (attrs_changed || state_changes.intersects(dep.sensitivities.states)) && !hint.contains(dep.hint) {
|
||||
// We can ignore the selector flags, since they would have already been set during
|
||||
// original matching for any element that might change its matching behavior here.
|
||||
let matched_then =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue