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

Side by Side Diff: Source/WebCore/inspector/front-end/NetworkPanel.js

Issue 8371003: Merge 97851 - Web Inspector: Enable caseSensitive search / Regex support in advanced search. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 2 months 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 unified diff | Download patch
OLDNEW
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 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 }, 1131 },
1132 1132
1133 performSearch: function(searchQuery, sortOrFilterApplied) 1133 performSearch: function(searchQuery, sortOrFilterApplied)
1134 { 1134 {
1135 var newMatchedResourceIndex = 0; 1135 var newMatchedResourceIndex = 0;
1136 var currentMatchedRequestId; 1136 var currentMatchedRequestId;
1137 if (this._currentMatchedResourceIndex !== -1) 1137 if (this._currentMatchedResourceIndex !== -1)
1138 currentMatchedRequestId = this._matchedResources[this._currentMatche dResourceIndex]; 1138 currentMatchedRequestId = this._matchedResources[this._currentMatche dResourceIndex];
1139 1139
1140 if (!sortOrFilterApplied) 1140 if (!sortOrFilterApplied)
1141 this._searchRegExp = createSearchRegex(searchQuery); 1141 this._searchRegExp = createSearchRegex(searchQuery, "i");
1142 1142
1143 this._clearSearchMatchedList(); 1143 this._clearSearchMatchedList();
1144 1144
1145 var childNodes = this._dataGrid.dataTableBody.childNodes; 1145 var childNodes = this._dataGrid.dataTableBody.childNodes;
1146 var resourceNodes = Array.prototype.slice.call(childNodes, 0, childNodes .length - 1); // drop the filler row. 1146 var resourceNodes = Array.prototype.slice.call(childNodes, 0, childNodes .length - 1); // drop the filler row.
1147 1147
1148 for (var i = 0; i < resourceNodes.length; ++i) { 1148 for (var i = 0; i < resourceNodes.length; ++i) {
1149 var dataGridNode = this._dataGrid.dataGridNodeFromNode(resourceNodes [i]); 1149 var dataGridNode = this._dataGrid.dataGridNodeFromNode(resourceNodes [i]);
1150 if (dataGridNode.isFilteredOut()) 1150 if (dataGridNode.isFilteredOut())
1151 continue; 1151 continue;
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
2125 var aValue = a._resource[propertyName]; 2125 var aValue = a._resource[propertyName];
2126 var bValue = b._resource[propertyName]; 2126 var bValue = b._resource[propertyName];
2127 if (aValue > bValue) 2127 if (aValue > bValue)
2128 return revert ? -1 : 1; 2128 return revert ? -1 : 1;
2129 if (bValue > aValue) 2129 if (bValue > aValue)
2130 return revert ? 1 : -1; 2130 return revert ? 1 : -1;
2131 return 0; 2131 return 0;
2132 } 2132 }
2133 2133
2134 WebInspector.NetworkDataGridNode.prototype.__proto__ = WebInspector.DataGridNode .prototype; 2134 WebInspector.NetworkDataGridNode.prototype.__proto__ = WebInspector.DataGridNode .prototype;
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/ElementsTreeOutline.js ('k') | Source/WebCore/inspector/front-end/Resource.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698