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

Issue 2747893005: [Devtools] Changed ViewportDataGrid to use DataGrid for dom operations

Created:
3 years, 9 months ago by allada
Modified:
3 years, 5 months ago
Reviewers:
caseq
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, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Devtools] Changed ViewportDataGrid to use DataGrid for dom operations This patch makes ViewportDataGrid send dom operations to DataGrid instead of doing them directly. It also ensures DataGrid's DOM operations can be intercepted by ViewportDataGrid to process later. R=caseq BUG=None

Patch Set 1 : [Devtools] Changed ViewportDataGrid to use DataGrid for dom operations #

Total comments: 8

Patch Set 2 : changes #

Patch Set 3 : added tests #

Total comments: 5

Patch Set 4 : Merge branch 'master' into DATAGRID_DOM_OPERATIONS #

Patch Set 5 : new test #

Patch Set 6 : better viewportdatagrid #

Messages

Total messages: 15 (8 generated)
allada
PTL
3 years, 9 months ago (2017-03-14 00:58:36 UTC) #6
caseq
3 years, 9 months ago (2017-03-17 18:38:28 UTC) #8
caseq
https://codereview.chromium.org/2747893005/diff/100001/third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js File third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js (right): https://codereview.chromium.org/2747893005/diff/100001/third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js#newcode1617 third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js:1617: if (!this.children.length) let's nuke this check, it's redundant. https://codereview.chromium.org/2747893005/diff/100001/third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js#newcode1624 ...
3 years, 9 months ago (2017-03-18 00:37:48 UTC) #9
allada
PTaL - LMK if questions. https://codereview.chromium.org/2747893005/diff/100001/third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js File third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js (right): https://codereview.chromium.org/2747893005/diff/100001/third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js#newcode1617 third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js:1617: if (!this.children.length) On 2017/03/18 ...
3 years, 9 months ago (2017-03-18 01:26:03 UTC) #10
dgozman
I think this patch changes too much logic at once, and since DataGrid is used ...
3 years, 9 months ago (2017-03-20 17:58:37 UTC) #11
allada
PTaL
3 years, 9 months ago (2017-03-22 22:38:53 UTC) #12
dgozman
3 years, 9 months ago (2017-03-23 20:57:43 UTC) #13
https://codereview.chromium.org/2747893005/diff/140001/third_party/WebKit/Lay...
File
third_party/WebKit/LayoutTests/http/tests/inspector-unit/viewport-datagrid-items-expandable-attached-to-dom-expected.txt
(right):

https://codereview.chromium.org/2747893005/diff/140001/third_party/WebKit/Lay...
third_party/WebKit/LayoutTests/http/tests/inspector-unit/viewport-datagrid-items-expandable-attached-to-dom-expected.txt:49:
a0
Shouldn't this be depth:1 ?

https://codereview.chromium.org/2747893005/diff/140001/third_party/WebKit/Sou...
File third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js (right):

https://codereview.chromium.org/2747893005/diff/140001/third_party/WebKit/Sou...
third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js:1634:
updateDOMStructure(previousParent) {
if (!this.dataGrid || (this.parent && !this.parent.expanded))
  this.detachFromDOM();
else
  this.attachToDOM();

https://codereview.chromium.org/2747893005/diff/140001/third_party/WebKit/Sou...
third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js:1752: if
(this._attachedToDOM) {
Should we check for _isNodeParentOutOfSyncWithDOM here? Or just call
this.attachToDOM() to check it for us?
I'm worried that attaching children before attaching parent properly may be
wrong.

https://codereview.chromium.org/2747893005/diff/140001/third_party/WebKit/Sou...
third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js:1921:
_isNodeParentOutOfSyncWithDOM() {
When does this happen? Could you please describe a specific scenario? Maybe
worth a comment?

https://codereview.chromium.org/2747893005/diff/140001/third_party/WebKit/Sou...
third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js:1967: delete
this._depth;
I think _depth is not related to DOM at all, and should be updated in other
places.

Powered by Google App Engine
This is Rietveld 408576698