mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Split get_animation_rules into get_animation_rule and get_transition_rule.
If an element has only CSS animations we don't need to get transition rule, and vice versa. This will be used when we implement eRestyle_CSSAnimations and eRestyle_CSSTransitions.
This commit is contained in:
parent
88c69206eb
commit
ba18c14b91
2 changed files with 25 additions and 5 deletions
|
@ -259,6 +259,18 @@ pub trait TElement : PartialEq + Debug + Sized + Copy + Clone + ElementExt + Pre
|
|||
AnimationRules(None, None)
|
||||
}
|
||||
|
||||
/// Get this element's animation rule.
|
||||
fn get_animation_rule(&self, _pseudo: Option<&PseudoElement>)
|
||||
-> Option<Arc<RwLock<PropertyDeclarationBlock>>> {
|
||||
None
|
||||
}
|
||||
|
||||
/// Get this element's transition rule.
|
||||
fn get_transition_rule(&self, _pseudo: Option<&PseudoElement>)
|
||||
-> Option<Arc<RwLock<PropertyDeclarationBlock>>> {
|
||||
None
|
||||
}
|
||||
|
||||
/// Get this element's state, for non-tree-structural pseudos.
|
||||
fn get_state(&self) -> ElementState;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue