From b688353c82f30019729190ea816cf8e6d011f905 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Sat, 15 Jul 2017 11:17:07 +0900 Subject: [PATCH] Return whether the root element has animation-only dirty bit from Servo_TraverseSubtree for flushing throttled animations. --- ports/geckolib/glue.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index bd1b2eec93d..7df38381811 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -283,7 +283,8 @@ pub extern "C" fn Servo_TraverseSubtree(root: RawGeckoElementBorrowed, } if restyle_behavior == Restyle::ForThrottledAnimationFlush { - return needs_animation_only_restyle; + return element.has_animation_only_dirty_descendants() || + element.borrow_data().unwrap().restyle.is_restyle(); } traverse_subtree(element,