Don't mark style dirty from style recalc for animations.

There is no point in marking an element style dirty while we are
recalculating style for it. For SVG elements which are referenced
through <use> elements we even mark the instances style-dirty which
caused a problem in issue 904381 because the <use> instance was outside
of the sub-tree rooted at the recalc root, causing the tree to be still
style-dirty after UpdateStyle.

Bug: 904381
Change-Id: If5e487783668e9d411ff721fd60e80fa7f1a8313
Reviewed-on: https://chromium-review.googlesource.com/c/1335602
Reviewed-by: Fredrik Söderquist <fs@opera.com>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#608712}
2 files changed