Defer compositor keyframe snapshots until the next style resolve
Previously compositor keyframes were being captured as soon as an animation
was created. In the case of element.animate() there is not enough context
to know the correct parentStyle to use resulting in crashes
when computing "inherit" in corner case scenarios.
By deferring the compositor keyframe snapshotting until we are in a
style resolve we can pass through the correct parentStyle and avoid
the crashes.
Additionally by deferring we are able to avoid forcing a style recalc
during element.animate() of a composited property.
BUG=593252, 539793, 534122, 587257
Review-Url: https://codereview.chromium.org/2043273002
Cr-Commit-Position: refs/heads/master@{#403861}
22 files changed