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

Issue 1863313002: DevTools: [Console] fix console stick-to-bottom behavior in case of multiline messages (Closed)

Created:
4 years, 8 months ago by lushnikov
Modified:
4 years, 8 months ago
Reviewers:
dgozman, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, pfeldman, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: [Console] fix console stick-to-bottom behavior in case of multiline messages The patch fixes the stick-to-bottom behavior of console in case of multiline messages. The patch does two things: 1. ViewportControl starts to cache provider's itemCount in invalidate call. This ensures that the regular scrolling of viewport is not affected by provider's item changes unless an invalidate method was called. 2. Stick to bottom only in case of non-user-generated gestures. This is done via transitioning to the event.isTrusted flag. BUG=594339 R=dgozman, pfeldman Committed: https://crrev.com/1d413c3ebced31d7182b31ff6efb458c5a12216e Cr-Commit-Position: refs/heads/master@{#385872}

Patch Set 1 #

Total comments: 2

Patch Set 2 : event.isTrusted #

Patch Set 3 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+633 lines, -326 lines) Patch
M third_party/WebKit/LayoutTests/inspector/console/console-viewport-selection.html View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-viewport-stick-to-bottom.html View 1 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-viewport-stick-to-bottom-expected.txt View 1 chunk +596 lines, -298 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js View 1 11 chunks +25 lines, -17 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
lushnikov
ptal
4 years, 8 months ago (2016-04-07 00:23:00 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1863313002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1863313002/1
4 years, 8 months ago (2016-04-07 00:23:44 UTC) #3
dgozman
https://codereview.chromium.org/1863313002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js File third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js (right): https://codereview.chromium.org/1863313002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js#newcode446 third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js:446: this.element.scrollTop = this.element.scrollHeight; Let's replace scrollHeight with 10000000000.
4 years, 8 months ago (2016-04-07 00:40:12 UTC) #4
lushnikov
https://codereview.chromium.org/1863313002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js File third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js (right): https://codereview.chromium.org/1863313002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js#newcode446 third_party/WebKit/Source/devtools/front_end/ui/ViewportControl.js:446: this.element.scrollTop = this.element.scrollHeight; On 2016/04/07 00:40:12, dgozman wrote: > ...
4 years, 8 months ago (2016-04-07 00:54:25 UTC) #6
dgozman
lgtm
4 years, 8 months ago (2016-04-07 00:58:50 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1863313002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1863313002/20001
4 years, 8 months ago (2016-04-07 00:59:46 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_oilpan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_blink_oilpan_rel/builds/27834)
4 years, 8 months ago (2016-04-07 02:10:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1863313002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1863313002/40001
4 years, 8 months ago (2016-04-07 17:24:48 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/208798)
4 years, 8 months ago (2016-04-07 20:02:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1863313002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1863313002/40001
4 years, 8 months ago (2016-04-07 20:06:47 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-07 21:28:54 UTC) #20
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 21:31:04 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1d413c3ebced31d7182b31ff6efb458c5a12216e
Cr-Commit-Position: refs/heads/master@{#385872}

Powered by Google App Engine
This is Rietveld 408576698