mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Make animation-name parse none
This commit is contained in:
parent
deb1b0aea6
commit
550c64cbf2
5 changed files with 46 additions and 12 deletions
|
@ -398,7 +398,9 @@ impl<E: TElement> StyleSharingCandidateCache<E> {
|
|||
return;
|
||||
}
|
||||
|
||||
if box_style.animation_name_count() > 0 {
|
||||
let animation_count = box_style.animation_name_count();
|
||||
debug_assert!(animation_count > 0);
|
||||
if animation_count > 1 || box_style.animation_name_at(0).0 != atom!("") {
|
||||
debug!("Failing to insert to the cache: animations");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue