Correctly handle cancelling compositor animations initiated from main thread.

We can have another scroll come in while there is an animation that is waiting
to be aborted on the compositor. This CL adds handling for this case.

This CL also ensures that we only update compositor animations from the
updateCompositorAnimations function, where the document lifecycle state is
CompositingClean.

BUG=584067

Review URL: https://codereview.chromium.org/1678713002

Cr-Commit-Position: refs/heads/master@{#374313}
4 files changed