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

Issue 2522783003: MD Settings: Fix CrScrollableBehavior (Closed)

Created:
4 years ago by stevenjb
Modified:
4 years ago
Reviewers:
dpapad
CC:
chromium-reviews, dbeam+watch-elements_chromium.org, michaelpg+watch-elements_chromium.org, oshima+watch_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Fix CrScrollableBehavior Currently if updateScrollableContents gets called more than once before the container height resolves, setInterval will be called multiplie times but only cleared once. This is very bad and is responsible for strange behavior and (likely) performance issues. BUG=665361 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/d5abef8fb532c2f2d647463052c1d5d9bd99c794 Cr-Commit-Position: refs/heads/master@{#434235}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix logic and use null #

Total comments: 4

Patch Set 3 : Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -11 lines) Patch
M ui/webui/resources/cr_elements/cr_scrollable_behavior.js View 1 2 6 chunks +19 lines, -11 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
stevenjb
4 years ago (2016-11-23 00:35:12 UTC) #3
dpapad
https://codereview.chromium.org/2522783003/diff/1/ui/webui/resources/cr_elements/cr_scrollable_behavior.js File ui/webui/resources/cr_elements/cr_scrollable_behavior.js (right): https://codereview.chromium.org/2522783003/diff/1/ui/webui/resources/cr_elements/cr_scrollable_behavior.js#newcode71 ui/webui/resources/cr_elements/cr_scrollable_behavior.js:71: if (this.intervalId_ === undefined) Shouldn't this be the opposite? ...
4 years ago (2016-11-23 01:12:51 UTC) #4
stevenjb
PTAL https://codereview.chromium.org/2522783003/diff/1/ui/webui/resources/cr_elements/cr_scrollable_behavior.js File ui/webui/resources/cr_elements/cr_scrollable_behavior.js (right): https://codereview.chromium.org/2522783003/diff/1/ui/webui/resources/cr_elements/cr_scrollable_behavior.js#newcode71 ui/webui/resources/cr_elements/cr_scrollable_behavior.js:71: if (this.intervalId_ === undefined) On 2016/11/23 01:12:51, dpapad ...
4 years ago (2016-11-23 18:07:01 UTC) #5
stevenjb
On 2016/11/23 18:07:01, stevenjb wrote: > PTAL > > https://codereview.chromium.org/2522783003/diff/1/ui/webui/resources/cr_elements/cr_scrollable_behavior.js > File ui/webui/resources/cr_elements/cr_scrollable_behavior.js (right): > ...
4 years ago (2016-11-23 18:07:36 UTC) #6
dpapad
https://codereview.chromium.org/2522783003/diff/20001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js File ui/webui/resources/cr_elements/cr_scrollable_behavior.js (right): https://codereview.chromium.org/2522783003/diff/20001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js#newcode71 ui/webui/resources/cr_elements/cr_scrollable_behavior.js:71: updateScrollableContents() { updateScrollableContents: function() { https://codereview.chromium.org/2522783003/diff/20001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js#newcode74 ui/webui/resources/cr_elements/cr_scrollable_behavior.js:74: if (this.intervalId_ ...
4 years ago (2016-11-23 18:30:21 UTC) #7
stevenjb
PTAL https://codereview.chromium.org/2522783003/diff/20001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js File ui/webui/resources/cr_elements/cr_scrollable_behavior.js (right): https://codereview.chromium.org/2522783003/diff/20001/ui/webui/resources/cr_elements/cr_scrollable_behavior.js#newcode71 ui/webui/resources/cr_elements/cr_scrollable_behavior.js:71: updateScrollableContents() { On 2016/11/23 18:30:21, dpapad wrote: > ...
4 years ago (2016-11-23 18:37:15 UTC) #8
dpapad
lgtm
4 years ago (2016-11-23 18:40:52 UTC) #9
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/2522783003/40001
4 years ago (2016-11-23 18:45:26 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-11-23 20:21:07 UTC) #13
commit-bot: I haz the power
4 years ago (2016-11-23 20:23:40 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d5abef8fb532c2f2d647463052c1d5d9bd99c794
Cr-Commit-Position: refs/heads/master@{#434235}

Powered by Google App Engine
This is Rietveld 408576698