mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Call UpdateEffectProperties for stylo.
This commit is contained in:
parent
4183b0dff2
commit
2513c8e24a
1 changed files with 4 additions and 1 deletions
|
@ -638,7 +638,7 @@ trait PrivateMatchMethods: TElement {
|
|||
new_values: &mut Arc<ComputedValues>,
|
||||
pseudo: Option<&PseudoElement>,
|
||||
_possibly_expired_animations: &mut Vec<PropertyAnimation>) {
|
||||
use context::CSS_ANIMATIONS;
|
||||
use context::{CSS_ANIMATIONS, EFFECT_PROPERTIES};
|
||||
use context::UpdateAnimationsTasks;
|
||||
|
||||
let ref new_box_style = new_values.get_box();
|
||||
|
@ -664,6 +664,9 @@ trait PrivateMatchMethods: TElement {
|
|||
if needs_update_animations {
|
||||
tasks.insert(CSS_ANIMATIONS);
|
||||
}
|
||||
if self.has_animations(pseudo) {
|
||||
tasks.insert(EFFECT_PROPERTIES);
|
||||
}
|
||||
if !tasks.is_empty() {
|
||||
let task = SequentialTask::update_animations(self.as_node().as_element().unwrap(),
|
||||
pseudo.cloned(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue