From 42b0ab77f42fe8a8122a73668b6ed6fdcbe7040b Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Wed, 21 Feb 2018 19:36:16 +0900 Subject: [PATCH] Post DISPLAY_CHANGED_FROM_NONE sequential task if the display property is changed from 'none' in the case the element has script animations --- components/style/matching.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/style/matching.rs b/components/style/matching.rs index 82db5ded7ae..594717cc52a 100644 --- a/components/style/matching.rs +++ b/components/style/matching.rs @@ -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() {