servo: Merge #17889 - stylo: remove bogus optimization check in replace_rules() for visited styles (from chenpighead:fix-transition-visited); r=hiro

We skipped updating the rule nodes for visited rules during animation-only restyle.
However, this causes isseus that visited style overrides animation styles on visited element.
So, it turns out that we should update the visited rules even during animation-only restyle.

Gecko bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1381235

Source-Repo: https://github.com/servo/servo
Source-Revision: d429561aa2dba35cfaca498c589462942b4c1cc4

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 291f128f87d9458fb0f201d99f8b5a256cca6fe1
This commit is contained in:
Jeremy Chen 2017-07-27 08:25:20 -05:00
Родитель 72da1b87ea
Коммит d0f54c9e2e
1 изменённых файлов: 6 добавлений и 8 удалений

Просмотреть файл

@ -647,14 +647,12 @@ pub trait MatchMethods : TElement {
CascadeVisitedMode::Unvisited,
cascade_inputs,
);
if !context.shared.traversal_flags.for_animation_only() {
result |= self.replace_rules_internal(
replacements,
context,
CascadeVisitedMode::Visited,
cascade_inputs
);
}
result |= self.replace_rules_internal(
replacements,
context,
CascadeVisitedMode::Visited,
cascade_inputs
);
result
}