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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (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 5a3a63da6f3c4b3d025fde453fa4fae64407673a..03f9a9161ef089ecb3ad39813554d66c557077d9 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotDataGrids.js
@@ -345,6 +345,9 @@ WebInspector.HeapSnapshotViewportDataGrid.prototype = {
return this.allChildren(this.rootNode());
},
+ /**
+ * @override
+ */
appendChildAfterSorting: function(child)
{
// Do nothing here, it will be added in updateVisibleNodes.
@@ -544,11 +547,17 @@ WebInspector.HeapSnapshotViewportDataGrid.prototype = {
this.allChildren(parent).splice(index, 0, /** @type {!WebInspector.HeapSnapshotGridNode} */(node));
},
+ /**
+ * @override
+ */
removeChildByIndex: function(parent, index)
{
this.allChildren(parent).splice(index, 1);
},
+ /**
+ * @override
+ */
removeAllChildren: function(parent)
{
parent._allChildren = [];
@@ -574,6 +583,9 @@ WebInspector.HeapSnapshotViewportDataGrid.prototype = {
return elemBottom <= viewportBottom && elemTop >= viewportTop;
},
+ /**
+ * @override
+ */
onResize: function()
{
WebInspector.HeapSnapshotSortableDataGrid.prototype.onResize.call(this);
@@ -629,6 +641,9 @@ WebInspector.HeapSnapshotContainmentDataGrid.prototype = {
return new WebInspector.HeapSnapshotObjectNode(this, snapshot, fakeEdge, null);
},
+ /**
+ * @override
+ */
sortingChanged: function()
{
var rootNode = this.rootNode();
@@ -662,6 +677,9 @@ WebInspector.HeapSnapshotRetainmentDataGrid.Events = {
};
WebInspector.HeapSnapshotRetainmentDataGrid.prototype = {
+ /**
+ * @override
+ */
_createRootNode: function(snapshot, fakeEdge)
{
return new WebInspector.HeapSnapshotRetainingObjectNode(this, snapshot, fakeEdge, null);
@@ -1023,6 +1041,9 @@ WebInspector.AllocationDataGrid.prototype = {
this.updateVisibleNodes(true);
},
+ /**
+ * @override
+ */
sortingChanged: function()
{
this._topNodes.sort(this._createComparator());

Powered by Google App Engine
This is Rietveld 408576698