aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/animation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/animation.rs')
-rw-r--r--components/style/animation.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/style/animation.rs b/components/style/animation.rs
index 4761fde0f28..8d670964ec8 100644
--- a/components/style/animation.rs
+++ b/components/style/animation.rs
@@ -475,6 +475,8 @@ fn compute_style_for_animation_step(context: &SharedStyleContext,
guard.declarations().iter().rev().map(|&(ref decl, _importance)| decl)
};
+ // This currently ignores visited styles, which seems acceptable,
+ // as existing browsers don't appear to animate visited styles.
let computed =
properties::apply_declarations(context.stylist.device(),
/* is_root = */ false,
@@ -482,6 +484,7 @@ fn compute_style_for_animation_step(context: &SharedStyleContext,
previous_style,
previous_style,
/* cascade_info = */ None,
+ /* visited_style = */ None,
&*context.error_reporter,
font_metrics_provider,
CascadeFlags::empty(),