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

Issue 396853005: DevTools: [Console] fix certain case that forces console to shake (Closed)

Created:
6 years, 5 months ago by lushnikov
Modified:
6 years, 5 months ago
Reviewers:
aandrey, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

DevTools: [Console] fix certain case that forces console to shake Currently, ViewportControl uses clientHeight of its main element to estimate visible viewport height. This falls shortly under the following scenario: 1. ViewportControl has its "stickToBottom" flag set to true and just scrolled to bottom as its "refresh" method got executed. Note, that this refresh has scheduled one more scroll as it "scrolls to bottom". 2. The "refresh" method call figured out that there's a necessity to render one more element in the beginning of viewport, and this new element happen to add a horizontal scroll to the console. 3. Another "refresh" method gets executed (it was scheduled in #1) 4. The method figures out that client height changed (due to added horizontal scroller), thus first element not needed any more and gets removed from viewport. 5. Goto #1. This change migrates from using clientHeight to using offsetHeight which doesn't change as horizontal scroller gets added or removed in result of viewport rendering. BUG=387465 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178422

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -5 lines) Patch
M Source/devtools/front_end/ui/ViewportControl.js View 4 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
lushnikov
ptal
6 years, 5 months ago (2014-07-17 12:01:31 UTC) #1
aandrey
looks good. will it be easy to add a test for this?
6 years, 5 months ago (2014-07-17 12:09:46 UTC) #2
lushnikov
The preconditions for this situation are fragile and hardly reproducible - its a matter of ...
6 years, 5 months ago (2014-07-17 12:36:44 UTC) #3
pfeldman
lgtm
6 years, 5 months ago (2014-07-17 17:41:08 UTC) #4
lushnikov
The CQ bit was checked by lushnikov@chromium.org
6 years, 5 months ago (2014-07-17 17:41:16 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/396853005/1
6 years, 5 months ago (2014-07-17 17:42:10 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-17 19:00:37 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-17 19:22:59 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu_retina_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu_retina_triggered_tests/builds/25129)
6 years, 5 months ago (2014-07-17 19:23:00 UTC) #9
lushnikov
The CQ bit was checked by lushnikov@chromium.org
6 years, 5 months ago (2014-07-18 08:44:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/396853005/1
6 years, 5 months ago (2014-07-18 08:45:23 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 08:45:56 UTC) #12
Message was sent while issue was closed.
Change committed as 178422

Powered by Google App Engine
This is Rietveld 408576698