DescriptionEnsure all infobars disappear when navigating between pages with infobars.
Previously, when navigating from one page with 3+ infobars to another
page with infobars, the animation would show only one or two infobars
hiding then one or two infobars appearing, even though all the existing
infobars should disappear, then all the new infobars should appear. To
the user, it appeared as if some of the new infobars had been there all
along (peeking up in the back), which is confusing and wrong.
This strange behavior was caused by the logic for deciding when to show
a hiding or appearing animation. This logic didn't associate a
particular infobar with a particular view; it just ensured that the
number of views matched the number of infobars. So, if infobars were
removed and then new infobars were quickly added, there would be fewer
animations than expected.
The new code explicitly associates an infobar with each view, so if all
the infobars are removed and then several new ones added, the animations
will reflect that correctly.
BUG=396223
Committed: https://crrev.com/ee701bbdcafe290b5961cdf98ebf366af27c3890
Cr-Commit-Position: refs/heads/master@{#371635}
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|