If we're waiting for an accelerated animation to start when leaving the page, the AnimationController can get stuck in a bad state that causes later transitions to fail.
<rdar://problem/8767714>
Created attachment 76893 [details] Step 1: some code cleanup
Created attachment 76901 [details] Step 2: actual bug fix
Attachment 76901 [details] did not build on gtk: Build output: http://queues.webkit.org/results/7242018
Attachment 76901 [details] did not build on chromium: Build output: http://queues.webkit.org/results/7197011
Attachment 76901 [details] did not build on qt: Build output: http://queues.webkit.org/results/7318018
Attachment 76901 [details] did not build on mac: Build output: http://queues.webkit.org/results/7252020
Comment on attachment 76901 [details] Step 2: actual bug fix This patch depends on the former, hence the build errors.
Attachment 76901 [details] did not build on win: Build output: http://queues.webkit.org/results/7250016
Attachment 76901 [details] did not build on chromium: Build output: http://queues.webkit.org/results/7205022
http://trac.webkit.org/changeset/74286 http://trac.webkit.org/changeset/74287