mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add a new sequential task flag for display propery changes from 'none'
Unlike CSS animations/transitions, script animations keep alive on display:none elements, so once the display property was changed to others in normal styling, we need to do styling for the script animations in the second animation traversal. Otherwise, the styling for the script animations will be deferred to the next frame.
This commit is contained in:
parent
5ba2e874b1
commit
6bba9d4dab
1 changed files with 5 additions and 0 deletions
|
@ -419,6 +419,11 @@ bitflags! {
|
|||
const EFFECT_PROPERTIES = structs::UpdateAnimationsTasks_EffectProperties;
|
||||
/// Update animation cacade results for animations running on the compositor.
|
||||
const CASCADE_RESULTS = structs::UpdateAnimationsTasks_CascadeResults;
|
||||
/// Display property was changed from none.
|
||||
/// Script animations keep alive on display:none elements, so we need to trigger
|
||||
/// the second animation restyles for the script animations in the case where
|
||||
/// the display property was changed from 'none' to others.
|
||||
const DISPLAY_CHANGED_FROM_NONE = structs::UpdateAnimationsTasks_DisplayChangedFromNone;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue