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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js

Issue 2554753004: Revert of [Devtools] Moved flatten children to children nodes instead of datagrid (Closed)
Patch Set: Created 4 years 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/network/NetworkLogView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js
index 0fff370f8a1d4b2124a282b0b8a0d4f9dbb0d7a3..7c41cb9129e6dcc6a7784e9d7e9c1abe89d089fa 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js
@@ -504,7 +504,6 @@
}
_setupDataGrid() {
- /** @type {!UI.SortableDataGrid} */
this._dataGrid = this._columns.dataGrid();
this._dataGrid.setRowContextMenuCallback(
(contextMenu, node) => this.handleContextMenuForRequest(contextMenu, node.request()));
@@ -521,8 +520,7 @@
* @param {!Event} event
*/
_dataGridMouseMove(event) {
- var node = /** @type {?Network.NetworkDataGridNode} */ (
- this._dataGrid.dataGridNodeFromNode(/** @type {!Node} */ (event.target)));
+ var node = this._dataGrid.dataGridNodeFromNode(event.target);
var highlightInitiatorChain = event.shiftKey;
this._setHoveredNode(node, highlightInitiatorChain);
this._highlightInitiatorChain((highlightInitiatorChain && node) ? node.request() : null);
@@ -786,7 +784,7 @@
* @return {!Array<!Network.NetworkDataGridNode>}
*/
flatNodesList() {
- return this._dataGrid.rootNode().flattenChildren();
+ return this._dataGrid.flatNodesList();
}
_refresh() {

Powered by Google App Engine
This is Rietveld 408576698