Changeset 122470 in webkit


Ignore:
Timestamp:
Jul 12, 2012 9:37:18 AM (12 years ago)
Author:
vsevik@chromium.org
Message:

Web Inspector: Remove resources panel edited resources search support.
https://bugs.webkit.org/show_bug.cgi?id=91101

Reviewed by Pavel Feldman.

  • inspector/front-end/ResourcesPanel.js:

(WebInspector.ResourcesPanel.prototype.performSearch.callback):
(WebInspector.ResourcesPanel.prototype.performSearch):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r122468 r122470  
     12012-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
    1122012-07-12  Vsevolod Vlasov  <vsevik@chromium.org>
    213
  • trunk/Source/WebCore/inspector/front-end/ResourcesPanel.js

    r121542 r122470  
    642642        var totalMatchesCount = 0;
    643643
    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 
    654644        function callback(error, result)
    655645        {
     
    668658                        continue;
    669659
    670                     if (resource.history.length > 0)
    671                         continue; // Skip edited resources.
    672660                    this._findTreeElementForResource(resource).searchMatchesFound(searchResult.matchesCount);
    673661                    totalMatchesCount += searchResult.matchesCount;
     
    682670        }
    683671
    684         this._forAllResourceTreeElements(searchInEditedResource.bind(this));
    685672        PageAgent.searchInResources(regex.source, !regex.ignoreCase, true, callback.bind(this));
    686673    },
Note: See TracChangeset for help on using the changeset viewer.