Animations should only trigger layer recomposite when necessary
Created attachment 359162 [details] Patch
https://trac.webkit.org/r240012
<rdar://problem/47298364>