From fcce61ee104131b25d92c40dd99335533b701c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 12 Apr 2017 22:57:44 +0800 Subject: [PATCH] stylo: Fix restyle hints check. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- components/style/restyle_hints.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/restyle_hints.rs b/components/style/restyle_hints.rs index e1ec77360343..8256722494a1 100644 --- a/components/style/restyle_hints.rs +++ b/components/style/restyle_hints.rs @@ -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 =