mirror of
https://github.com/servo/servo.git
synced 2025-08-20 04:45:33 +01:00
Make animation-name parse none
This commit is contained in:
parent
4bc0cac395
commit
6273fa0305
6 changed files with 53 additions and 12 deletions
|
@ -1295,6 +1295,14 @@ pub mod style_structs {
|
|||
}
|
||||
% endif
|
||||
% endfor
|
||||
|
||||
% if style_struct.name == "Box":
|
||||
/// Returns whether there is any animation specified with
|
||||
/// animation-name other than `none`.
|
||||
pub fn specifies_animations(&self) -> bool {
|
||||
self.animation_name_iter().any(|name| name.0 != atom!(""))
|
||||
}
|
||||
% endif
|
||||
}
|
||||
|
||||
% for longhand in style_struct.longhands:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue