mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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,
|
CascadeVisitedMode::Unvisited,
|
||||||
cascade_inputs,
|
cascade_inputs,
|
||||||
);
|
);
|
||||||
if !context.shared.traversal_flags.for_animation_only() {
|
result |= self.replace_rules_internal(
|
||||||
result |= self.replace_rules_internal(
|
replacements,
|
||||||
replacements,
|
context,
|
||||||
context,
|
CascadeVisitedMode::Visited,
|
||||||
CascadeVisitedMode::Visited,
|
cascade_inputs
|
||||||
cascade_inputs
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue