Revert 153291 - Fixes crash introduced @ 153047 (you can hit crash by maximizing a
window). The cross fade code deletes the layer when the animation
finishes. The newly added code was accessing members after the
animation finished and the animator was deleted, resulting in the
crash. Since I'm sure this will come up more in the future I've
restructured the code to allow for deletion when calling out like
this.

The cross fade test exercises this code path now, but I'll see about a
more focused tests shortly.

BUG=129033
TEST=covered by tests.
[email protected]

Review URL: https://chromiumcodereview.appspot.com/10874064

[email protected]
Review URL: https://chromiumcodereview.appspot.com/10882043

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153312 0039d316-1c4b-4281-b951-d872f2087c98
7 files changed