Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Issue 2224673002: MD Settings: simplify animation scheduling (Closed)

Created:
4 years, 4 months ago by michaelpg
Modified:
4 years, 4 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, jlklein+watch-closure_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, dbeam+watch-closure_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD 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)
michaelpg
dan: PTAL. this makes things moar stable, and is the last thing to do before ...
4 years, 4 months ago (2016-08-06 04:05:35 UTC) #6
Dan Beam
lgtm but is there anything worth testing here? https://codereview.chromium.org/2224673002/diff/40001/chrome/browser/resources/settings/settings_page/main_page_behavior.js File chrome/browser/resources/settings/settings_page/main_page_behavior.js (right): https://codereview.chromium.org/2224673002/diff/40001/chrome/browser/resources/settings/settings_page/main_page_behavior.js#newcode102 chrome/browser/resources/settings/settings_page/main_page_behavior.js:102: * ...
4 years, 4 months ago (2016-08-09 18:15:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2224673002/60001
4 years, 4 months ago (2016-08-09 20:43:59 UTC) #10
michaelpg
On 2016/08/09 18:15:19, Dan Beam wrote: > lgtm but is there anything worth testing here? ...
4 years, 4 months ago (2016-08-09 20:44:03 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-09 22:04:58 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 22:06:15 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/50f1d1ddcccb390b00dd91ff5b6881010e295c15
Cr-Commit-Position: refs/heads/master@{#410844}

Powered by Google App Engine
This is Rietveld 408576698