Auto merge of #13056 - KiChjang:transition-event, r=mbrubeck

Implement transition event and infrastructure

Fixes #10245.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13056)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-10-12 02:08:37 -05:00 committed by GitHub
commit cd2f950de3
23 changed files with 199 additions and 61 deletions

View file

@ -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: