Add timeout to animation callback (squashed)

This is for CEF 1750 issue #7689

Squashed version of randy/cef1750-issue-7689 branch - pull request https://github.com/adobe/brackets/pull/7852

cc @njx @peterflynn