When adding @keyframes rules to style via script, we re-resolve style on the entire document, which is slow. Since we know that @keyframes only affect animations, this can be optimized. <rdar://problem/6284606>