mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Post DISPLAY_CHANGED_FROM_NONE sequential task if the display property is changed from 'none' in the case the element has script animations
This commit is contained in:
parent
6bba9d4dab
commit
42b0ab77f4
1 changed files with 3 additions and 0 deletions
|
@ -259,6 +259,9 @@ trait PrivateMatchMethods: TElement {
|
||||||
if important_rules_changed {
|
if important_rules_changed {
|
||||||
tasks.insert(UpdateAnimationsTasks::CASCADE_RESULTS);
|
tasks.insert(UpdateAnimationsTasks::CASCADE_RESULTS);
|
||||||
}
|
}
|
||||||
|
if new_values.is_display_property_changed_from_none(old_values.as_ref().map(|s| &**s)) {
|
||||||
|
tasks.insert(UpdateAnimationsTasks::DISPLAY_CHANGED_FROM_NONE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !tasks.is_empty() {
|
if !tasks.is_empty() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue