Deflake paint/invalidation/animated-gif*.html
- Replace timeouts with advanceImageAnimation()
- Don't start tracking paint invalidations before repaintTest to avoid
extra paint invalidations sometimes. advanceImageAnimation() can
ensure a new animation frame so we don't need to start tracking
earlier which was required when we used the timeout.
BUG=
619103
Committed:
https://crrev.com/a91010926d8c5c77e395f2dab49b4e64f11e6c00
Cr-Commit-Position: refs/heads/master@{#417641}