Return whether the root element has animation-only dirty bit from Servo_TraverseSubtree for flushing throttled animations.

This commit is contained in:
Hiroyuki Ikezoe 2017-07-15 11:17:07 +09:00
parent 0523e7efb6
commit b688353c82

View file

@ -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,