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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js

Issue 2536723003: [Devtools] Removed DataGrid's hasChildren getter/setter to use functions (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
index b63999f89bea63d8c0e0e3cda66fb1f44df69cf4..4ffffd88ff2afd51101723710ffdea76ae247356 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
@@ -346,7 +346,7 @@ UI.ViewportDataGridNode = class extends UI.DataGridNode {
child.parent = this;
child.dataGrid = this.dataGrid;
if (!this.children.length)
- this.hasChildren = true;
+ this.setHasChildren(true);
this.children.splice(index, 0, child);
child.recalculateSiblings(index);
if (this._expanded)
@@ -370,7 +370,7 @@ UI.ViewportDataGridNode = class extends UI.DataGridNode {
child._unlink();
this.children.remove(child, true);
if (!this.children.length)
- this.hasChildren = false;
+ this.setHasChildren(false);
if (this._expanded)
this.dataGrid.scheduleUpdateStructure();
}
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698