Chromium Code Reviews| 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 4b7c2d79789fefe86675e9a11a226730c245cf87..568b610680b0d89d9a0d233c76ce83488293dbcb 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| @@ -961,7 +961,8 @@ WebInspector.NetworkLogView.prototype = { |
| var dataGrid = this._dataGrid; |
| var rootNode = dataGrid.rootNode(); |
| - var nodesToInsert = []; |
| + var nodesToInsert = /** @type {!Array<!WebInspector.NetworkDataGridNode> } */ ([]); |
|
pfeldman
2016/04/01 18:55:47
/** @type {!Array<!WebInspector.NetworkDataGridNod
|
| + var nodesToRefresh = /** @type {!Array<!WebInspector.NetworkDataGridNode> } */ ([]); |
| for (var requestId in this._staleRequestIds) { |
| var node = this._nodesByRequestId.get(requestId); |
| if (!node) |
| @@ -976,6 +977,9 @@ WebInspector.NetworkLogView.prototype = { |
| if (!node[WebInspector.NetworkLogView._isFilteredOutSymbol]) |
| nodesToInsert.push(node); |
| } |
| + if (!isFilteredOut) { |
|
pfeldman
2016/04/01 18:55:47
style nit: drop the {}
|
| + nodesToRefresh.push(node); |
| + } |
| var request = node.request(); |
| this._timeCalculator.updateBoundaries(request); |
| this._durationCalculator.updateBoundaries(request); |
| @@ -985,10 +989,12 @@ WebInspector.NetworkLogView.prototype = { |
| var node = nodesToInsert[i]; |
| var request = node.request(); |
| dataGrid.insertChild(node); |
| - node.refresh(); |
| node[WebInspector.NetworkLogView._isMatchingSearchQuerySymbol] = this._matchRequest(request); |
| } |
| + for (var node of nodesToRefresh) |
| + node.refresh(); |
| + |
| this._highlightNthMatchedRequestForSearch(this._updateMatchCountAndFindMatchIndex(this._currentMatchedRequestNode), false); |
| if (!this.calculator().boundary().equals(oldBoundary)) { |