style: Don't share styles when an element has animations applied to it.
style: Don't share styles when an element has animations applied to it.

We already avoid putting styles in the shared style cache for an element that
has animations[1] but if we are doing the initial style of two siblings where
the _second_ has animations applied, there is nothing to stop us from trying to
share with the first (un-animated) element. This patch adds a check to prevent
sharing in that case since sharing style between animated elements is unsound
for the reasons described in [1].

A number of tests including:

  testing/web-platform/tests/web-animations/animation-model/animation-types/visibility.html

will fail without this fix once we remove the style flush from
KeyframeEffect::SetKeyframes later in this patch series.

[1] https://searchfox.org/mozilla-central/rev/6e3cc153566f5f288ae768a2172385b8436d61dd/servo/components/style/sharing/mod.rs#597

Differential Revision: https://phabricator.services.mozilla.com/D18913

splav/servo,DominoTree/servo,DominoTree/servo,nnethercote/servo,pyfisch/servo,pyfisch/servo,peterjoel/servo,KiChjang/servo,szeged/servo,nnethercote/servo,splav/servo,saneyuki/servo,notriddle/servo,larsbergstrom/servo,paulrouget/servo,szeged/servo,larsbergstrom/servo,peterjoel/servo,larsbergstrom/servo,KiChjang/servo,larsbergstrom/servo,pyfisch/servo,saneyuki/servo,larsbergstrom/servo,KiChjang/servo,splav/servo,paulrouget/servo,notriddle/servo,DominoTree/servo,saneyuki/servo,peterjoel/servo,DominoTree/servo,DominoTree/servo,szeged/servo,paulrouget/servo,KiChjang/servo,pyfisch/servo,KiChjang/servo,KiChjang/servo,paulrouget/servo,szeged/servo,pyfisch/servo,szeged/servo,notriddle/servo,notriddle/servo,emilio/servo,saneyuki/servo,KiChjang/servo,saneyuki/servo,emilio/servo,splav/servo,paulrouget/servo,larsbergstrom/servo,DominoTree/servo,notriddle/servo,pyfisch/servo,nnethercote/servo,saneyuki/servo,pyfisch/servo,notriddle/servo,szeged/servo,nnethercote/servo,pyfisch/servo,szeged/servo,peterjoel/servo,saneyuki/servo,KiChjang/servo,paulrouget/servo,splav/servo,paulrouget/servo,paulrouget/servo,emilio/servo,splav/servo,larsbergstrom/servo,paulrouget/servo,nnethercote/servo,DominoTree/servo,peterjoel/servo,emilio/servo,szeged/servo,DominoTree/servo,KiChjang/servo,notriddle/servo,nnethercote/servo,splav/servo,pyfisch/servo,saneyuki/servo,peterjoel/servo,emilio/servo,notriddle/servo,emilio/servo,peterjoel/servo,nnethercote/servo,nnethercote/servo,paulrouget/servo,saneyuki/servo,DominoTree/servo,saneyuki/servo,peterjoel/servo,emilio/servo,peterjoel/servo,emilio/servo,notriddle/servo,splav/servo,nnethercote/servo,szeged/servo,nnethercote/servo,emilio/servo,KiChjang/servo,notriddle/servo,splav/servo,szeged/servo,emilio/servo,pyfisch/servo,larsbergstrom/servo,DominoTree/servo,larsbergstrom/servo,peterjoel/servo,splav/servo,larsbergstrom/servo