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

Issue 340483003: DevTools: [Console] Separate height caching from willHide event (Closed)

Created:
6 years, 6 months ago by lushnikov
Modified:
6 years, 6 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] Separate height caching from willHide event This patch introduces ViewportElement.cacheHeight() method which is called by viewport control in appropriate time to let viewportElement cache its height. Currently, ViewportElement.willHide() method is responsible for height caching. ViewportElement.cacheHeight() must not invalidate DOM. This is not the case for willHide() method due to the console.table implementation which removes inner DataGrid views. The bug happens because of the "scroller securing" (see ViewportElement.refresh method) being done after the sequence of willHide() calls. BUG=385685 R=aandrey, pfeldman Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176431

Patch Set 1 #

Total comments: 1

Patch Set 2 : cacheHeight -> cacheFastHeight #

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

Messages

Total messages: 8 (0 generated)
lushnikov
PTAL
6 years, 6 months ago (2014-06-17 17:10:02 UTC) #1
aandrey
https://codereview.chromium.org/340483003/diff/1/Source/devtools/front_end/ui/ViewportControl.js File Source/devtools/front_end/ui/ViewportControl.js (right): https://codereview.chromium.org/340483003/diff/1/Source/devtools/front_end/ui/ViewportControl.js#newcode91 Source/devtools/front_end/ui/ViewportControl.js:91: cacheHeight: function() { }, maybe willReLayout()? one may want ...
6 years, 6 months ago (2014-06-17 19:21:35 UTC) #2
lushnikov
On 2014/06/17 19:21:35, aandrey wrote: > https://codereview.chromium.org/340483003/diff/1/Source/devtools/front_end/ui/ViewportControl.js > File Source/devtools/front_end/ui/ViewportControl.js (right): > > https://codereview.chromium.org/340483003/diff/1/Source/devtools/front_end/ui/ViewportControl.js#newcode91 > ...
6 years, 6 months ago (2014-06-18 08:27:21 UTC) #3
aandrey
> > if so, maybe call it cacheFastHeight? > I'm ok with this name if ...
6 years, 6 months ago (2014-06-18 09:54:43 UTC) #4
lushnikov
Done, thanks!
6 years, 6 months ago (2014-06-18 14:54:00 UTC) #5
lushnikov
The CQ bit was checked by lushnikov@chromium.org
6 years, 6 months ago (2014-06-18 14:54:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/340483003/20001
6 years, 6 months ago (2014-06-18 14:55:01 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 16:21:43 UTC) #8
Message was sent while issue was closed.
Change committed as 176431

Powered by Google App Engine
This is Rietveld 408576698