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 2688803002: DevTools: always do partial viewport update in console (Closed)

Created:
3 years, 10 months ago by luoe
Modified:
3 years, 10 months ago
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: always do partial viewport update in console Previously, all console viewport updates besides scrolling required a viewport invalidation that removed all in-DOM elements and called wasShown/wasHide unnecessarily. Now, viewport will always do a partial update. BUG=none Review-Url: https://codereview.chromium.org/2688803002 Cr-Commit-Position: refs/heads/master@{#451052} Committed: https://chromium.googlesource.com/chromium/src/+/77837664dc6bab97b40da3585d86728d1bd79bec

Patch Set 1 #

Patch Set 2 : focused #

Patch Set 3 : more focused cl without driveby #

Total comments: 6

Patch Set 4 : ac #

Total comments: 6

Patch Set 5 : ac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -40 lines) Patch
A third_party/WebKit/LayoutTests/inspector/console/console-viewport-control.html View 1 2 3 1 chunk +164 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/console/console-viewport-control-expected.txt View 1 2 3 1 chunk +173 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js View 1 2 3 4 4 chunks +12 lines, -40 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
luoe
This CL is intended to be a self-contained prerequisite to another CL where rebuilding decoration ...
3 years, 10 months ago (2017-02-10 00:37:29 UTC) #3
pfeldman
Looks scary (hard to review) to me. Is there an incremental way?
3 years, 10 months ago (2017-02-11 01:50:43 UTC) #4
luoe
The first patch set had some drive-by cleanup that I've removed in the 2nd patch. ...
3 years, 10 months ago (2017-02-11 04:06:18 UTC) #5
luoe
On 2017/02/11 04:06:18, luoe wrote: > The first patch set had some drive-by cleanup that ...
3 years, 10 months ago (2017-02-11 04:17:14 UTC) #6
luoe
ptal
3 years, 10 months ago (2017-02-14 03:45:07 UTC) #7
einbinder
https://codereview.chromium.org/2688803002/diff/40001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js File third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js (right): https://codereview.chromium.org/2688803002/diff/40001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js#newcode394 third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js:394: if (element !== anchor) { It looks like wasShown ...
3 years, 10 months ago (2017-02-14 19:08:47 UTC) #8
lushnikov
https://codereview.chromium.org/2688803002/diff/40001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js File third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js (right): https://codereview.chromium.org/2688803002/diff/40001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js#newcode382 third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js:382: var willBeHidden = this._renderedItems.filter(item => !orderedItemsToRender.includes(item)); this will be ...
3 years, 10 months ago (2017-02-14 21:37:51 UTC) #9
luoe
Test updated with reordering two messages. Ptal! https://codereview.chromium.org/2688803002/diff/40001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js File third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js (right): https://codereview.chromium.org/2688803002/diff/40001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js#newcode382 third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js:382: var willBeHidden ...
3 years, 10 months ago (2017-02-14 22:23:46 UTC) #10
lushnikov
lgtm https://codereview.chromium.org/2688803002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js File third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js (right): https://codereview.chromium.org/2688803002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js#newcode394 third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js:394: var wasReordered = element.parentElement === this._contentElement; can we ...
3 years, 10 months ago (2017-02-15 21:34:15 UTC) #11
pfeldman
https://codereview.chromium.org/2688803002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js File third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js (right): https://codereview.chromium.org/2688803002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js#newcode397 third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js:397: this._contentElement.insertBefore(element, anchor); You are breaking the console.table (wasShown contract), ...
3 years, 10 months ago (2017-02-15 22:06:10 UTC) #12
pfeldman
https://codereview.chromium.org/2688803002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js File third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js (right): https://codereview.chromium.org/2688803002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js#newcode397 third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js:397: this._contentElement.insertBefore(element, anchor); On 2017/02/15 22:06:10, pfeldman wrote: > You ...
3 years, 10 months ago (2017-02-15 22:25:58 UTC) #13
luoe
https://codereview.chromium.org/2688803002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js File third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js (right): https://codereview.chromium.org/2688803002/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js#newcode394 third_party/WebKit/Source/devtools/front_end/console/ConsoleViewport.js:394: var wasReordered = element.parentElement === this._contentElement; On 2017/02/15 21:34:14, ...
3 years, 10 months ago (2017-02-15 23:24:18 UTC) #14
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/2688803002/80001
3 years, 10 months ago (2017-02-16 18:16:57 UTC) #21
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 19:36:13 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/77837664dc6bab97b40da3585d86...

Powered by Google App Engine
This is Rietveld 408576698