Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> | 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> |
| 4 * Copyright (C) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 959 this._timeCalculator.updateBoundariesForEventTime(this._mainRequestDOMCo ntentLoadedTime); | 959 this._timeCalculator.updateBoundariesForEventTime(this._mainRequestDOMCo ntentLoadedTime); |
| 960 this._durationCalculator.updateBoundariesForEventTime(this._mainRequestD OMContentLoadedTime); | 960 this._durationCalculator.updateBoundariesForEventTime(this._mainRequestD OMContentLoadedTime); |
| 961 | 961 |
| 962 var dataGrid = this._dataGrid; | 962 var dataGrid = this._dataGrid; |
| 963 var rootNode = dataGrid.rootNode(); | 963 var rootNode = dataGrid.rootNode(); |
| 964 var nodesToInsert = []; | 964 var nodesToInsert = []; |
| 965 for (var requestId in this._staleRequestIds) { | 965 for (var requestId in this._staleRequestIds) { |
| 966 var node = this._nodesByRequestId.get(requestId); | 966 var node = this._nodesByRequestId.get(requestId); |
| 967 if (!node) | 967 if (!node) |
| 968 continue; | 968 continue; |
| 969 if (!node[WebInspector.NetworkLogView._isFilteredOutSymbol]) | 969 var isFilteredOut = !this._applyFilter(node); |
| 970 rootNode.removeChild(node); | 970 if (node[WebInspector.NetworkLogView._isFilteredOutSymbol] !== isFil teredOut) { |
| 971 node[WebInspector.NetworkLogView._isFilteredOutSymbol] = !this._appl yFilter(node); | 971 if (!node[WebInspector.NetworkLogView._isFilteredOutSymbol]) |
| 972 if (!node[WebInspector.NetworkLogView._isFilteredOutSymbol]) | 972 rootNode.removeChild(node); |
|
lushnikov
2016/03/30 19:27:18
else
nodesToInsert.push(node);
| |
| 973 nodesToInsert.push(node); | 973 |
| 974 node[WebInspector.NetworkLogView._isFilteredOutSymbol] = isFilte redOut; | |
| 975 | |
| 976 if (!node[WebInspector.NetworkLogView._isFilteredOutSymbol]) | |
| 977 nodesToInsert.push(node); | |
| 978 } | |
| 974 var request = node.request(); | 979 var request = node.request(); |
| 975 this._timeCalculator.updateBoundaries(request); | 980 this._timeCalculator.updateBoundaries(request); |
| 976 this._durationCalculator.updateBoundaries(request); | 981 this._durationCalculator.updateBoundaries(request); |
| 977 } | 982 } |
| 978 | 983 |
| 979 for (var i = 0; i < nodesToInsert.length; ++i) { | 984 for (var i = 0; i < nodesToInsert.length; ++i) { |
| 980 var node = nodesToInsert[i]; | 985 var node = nodesToInsert[i]; |
| 981 var request = node.request(); | 986 var request = node.request(); |
| 982 dataGrid.insertChild(node); | 987 dataGrid.insertChild(node); |
| 983 node.refresh(); | 988 node.refresh(); |
| (...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2161 return false; | 2166 return false; |
| 2162 return true; | 2167 return true; |
| 2163 } | 2168 } |
| 2164 | 2169 |
| 2165 WebInspector.NetworkLogView.EventTypes = { | 2170 WebInspector.NetworkLogView.EventTypes = { |
| 2166 RequestSelected: "RequestSelected", | 2171 RequestSelected: "RequestSelected", |
| 2167 SearchCountUpdated: "SearchCountUpdated", | 2172 SearchCountUpdated: "SearchCountUpdated", |
| 2168 SearchIndexUpdated: "SearchIndexUpdated", | 2173 SearchIndexUpdated: "SearchIndexUpdated", |
| 2169 UpdateRequest: "UpdateRequest" | 2174 UpdateRequest: "UpdateRequest" |
| 2170 }; | 2175 }; |
| OLD | NEW |