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:
Hiroyuki Ikezoe 2018-02-21 19:36:16 +09:00
parent 6bba9d4dab
commit 42b0ab77f4

View file

@ -259,6 +259,9 @@ trait PrivateMatchMethods: TElement {
if important_rules_changed {
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() {