mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +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>,
|
new_values: &mut Arc<ComputedValues>,
|
||||||
pseudo: Option<&PseudoElement>,
|
pseudo: Option<&PseudoElement>,
|
||||||
_possibly_expired_animations: &mut Vec<PropertyAnimation>) {
|
_possibly_expired_animations: &mut Vec<PropertyAnimation>) {
|
||||||
use context::CSS_ANIMATIONS;
|
use context::{CSS_ANIMATIONS, EFFECT_PROPERTIES};
|
||||||
use context::UpdateAnimationsTasks;
|
use context::UpdateAnimationsTasks;
|
||||||
|
|
||||||
let ref new_box_style = new_values.get_box();
|
let ref new_box_style = new_values.get_box();
|
||||||
|
@ -664,6 +664,9 @@ trait PrivateMatchMethods: TElement {
|
||||||
if needs_update_animations {
|
if needs_update_animations {
|
||||||
tasks.insert(CSS_ANIMATIONS);
|
tasks.insert(CSS_ANIMATIONS);
|
||||||
}
|
}
|
||||||
|
if self.has_animations(pseudo) {
|
||||||
|
tasks.insert(EFFECT_PROPERTIES);
|
||||||
|
}
|
||||||
if !tasks.is_empty() {
|
if !tasks.is_empty() {
|
||||||
let task = SequentialTask::update_animations(self.as_node().as_element().unwrap(),
|
let task = SequentialTask::update_animations(self.as_node().as_element().unwrap(),
|
||||||
pseudo.cloned(),
|
pseudo.cloned(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue