From 27405bd0b69b60cdd807cb3b1a3d33bddbdf0151 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Tue, 11 Apr 2017 16:32:11 +0900 Subject: [PATCH] Don't call process_animations during animation-only restyles. --- components/style/matching.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/matching.rs b/components/style/matching.rs index 0c50445b40d..2f2468413f5 100644 --- a/components/style/matching.rs +++ b/components/style/matching.rs @@ -433,7 +433,7 @@ trait PrivateMatchMethods: TElement { &pseudo_style); // Handle animations. - if animate { + if animate && !context.shared.traversal_flags.for_animation_only() { self.process_animations(context, &mut old_values, &mut new_values,