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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.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
Index: third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.js b/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.js
index 80afb4368ea91ec7c2c75e955e3a43aa421cb142..a447dc37bd944ec9c2aff7f244019b8c4bb945b5 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.js
@@ -390,9 +390,9 @@ Profiler.HeapSnapshotViewportDataGrid = class extends Profiler.HeapSnapshotSorta
var child = children[i];
if (nameFilterValue && child.filteredOut && child.filteredOut(nameFilterValue))
continue;
- var hasChildren = child.hasChildren;
+ var hasChildren = child.hasChildren();
child.removeChildren();
- child.hasChildren = hasChildren;
+ child.setHasChildren(hasChildren);
child.revealed = true;
parentNode.appendChild(child);
position += child.nodeSelfHeight();
@@ -602,7 +602,7 @@ Profiler.HeapSnapshotContainmentDataGrid = class extends Profiler.HeapSnapshotSo
*/
sortingChanged() {
var rootNode = this.rootNode();
- if (rootNode.hasChildren)
+ if (rootNode.hasChildren())
rootNode.sort();
}
};

Powered by Google App Engine
This is Rietveld 408576698