mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
stylo: remove bogus optimization check in replace_rules() for visited styles.
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
This commit is contained in:
parent
9370a0c4b5
commit
000547b999
1 changed files with 6 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue