Changeset 122470 in webkit
- Timestamp:
- Jul 12, 2012 9:37:18 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r122468 r122470 1 2012-07-12 Vsevolod Vlasov <vsevik@chromium.org> 2 3 Web Inspector: Remove resources panel edited resources search support. 4 https://bugs.webkit.org/show_bug.cgi?id=91101 5 6 Reviewed by Pavel Feldman. 7 8 * inspector/front-end/ResourcesPanel.js: 9 (WebInspector.ResourcesPanel.prototype.performSearch.callback): 10 (WebInspector.ResourcesPanel.prototype.performSearch): 11 1 12 2012-07-12 Vsevolod Vlasov <vsevik@chromium.org> 2 13 -
trunk/Source/WebCore/inspector/front-end/ResourcesPanel.js
r121542 r122470 642 642 var totalMatchesCount = 0; 643 643 644 function searchInEditedResource(treeElement)645 {646 var resource = treeElement.representedObject;647 if (resource.history.length == 0)648 return;649 var matchesCount = countRegexMatches(regex, resource.content)650 treeElement.searchMatchesFound(matchesCount);651 totalMatchesCount += matchesCount;652 }653 654 644 function callback(error, result) 655 645 { … … 668 658 continue; 669 659 670 if (resource.history.length > 0)671 continue; // Skip edited resources.672 660 this._findTreeElementForResource(resource).searchMatchesFound(searchResult.matchesCount); 673 661 totalMatchesCount += searchResult.matchesCount; … … 682 670 } 683 671 684 this._forAllResourceTreeElements(searchInEditedResource.bind(this));685 672 PageAgent.searchInResources(regex.source, !regex.ignoreCase, true, callback.bind(this)); 686 673 },
Note: See TracChangeset
for help on using the changeset viewer.