Revert "Auto merge of #15793 - upsuper:animation, r=emilio,bholley"

This reverts commit 7cd4c69c40, reversing
changes made to 1b1fadb8b8.
This commit is contained in:
Bobby Holley 2017-03-03 11:50:15 -08:00
parent c32181c6db
commit 3a56899201
7 changed files with 97 additions and 99 deletions

View file

@ -398,9 +398,7 @@ impl<E: TElement> StyleSharingCandidateCache<E> {
return;
}
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!("") {
if box_style.animation_name_count() > 0 {
debug!("Failing to insert to the cache: animations");
return;
}