Chromium Code Reviews
DescriptionMD Settings: simplify animation scheduling
The logic to schedule multiple expand/collapse animations when they're already
running is buggy, and this almost never happens anyway. Replace with simpler
logic:
1. If the UI matches currentRoute, stop.
2. If no animation is playing, animate to match currentRoute.
3. Otherwise, finish/cancel the animation if necessary.
This removes TransitionBehavior and simplifies MainPageBehavior.
BUG=589681
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/50f1d1ddcccb390b00dd91ff5b6881010e295c15
Cr-Commit-Position: refs/heads/master@{#410844}
Patch Set 1 #Patch Set 2 : rebase on other CL #Patch Set 3 : cleanup #
Total comments: 4
Patch Set 4 : rebase #Messages
Total messages: 15 (9 generated)
|