mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Return whether the root element has animation-only dirty bit from Servo_TraverseSubtree for flushing throttled animations.
This commit is contained in:
parent
0523e7efb6
commit
b688353c82
1 changed files with 2 additions and 1 deletions
|
@ -283,7 +283,8 @@ pub extern "C" fn Servo_TraverseSubtree(root: RawGeckoElementBorrowed,
|
||||||
}
|
}
|
||||||
|
|
||||||
if restyle_behavior == Restyle::ForThrottledAnimationFlush {
|
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,
|
traverse_subtree(element,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue