Make animation-name parse none

This commit is contained in:
Xidorn Quan 2017-03-02 17:42:45 +11:00
parent deb1b0aea6
commit 550c64cbf2
5 changed files with 46 additions and 12 deletions

View file

@ -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;
}