mirror of
https://github.com/servo/servo.git
synced 2025-08-14 01:45:33 +01:00
Emit TransitionEnd events in the layout thread and process it in the script thread
This commit is contained in:
parent
752c6e6019
commit
668163ec5c
21 changed files with 103 additions and 62 deletions
|
@ -101,6 +101,16 @@ pub enum AnimatedProperty {
|
|||
}
|
||||
|
||||
impl AnimatedProperty {
|
||||
pub fn name(&self) -> String {
|
||||
match *self {
|
||||
% for prop in data.longhands:
|
||||
% if prop.animatable:
|
||||
AnimatedProperty::${prop.camel_case}(..) => "${prop.name}".to_owned(),
|
||||
% endif
|
||||
% endfor
|
||||
}
|
||||
}
|
||||
|
||||
pub fn does_animate(&self) -> bool {
|
||||
match *self {
|
||||
% for prop in data.longhands:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue