Skip to content
  • aroben@apple.com's avatar
    Fix Bug 18505: REGRESSION: Search is disabled and not functional · b0fc075e
    aroben@apple.com authored
            <https://bugs.webkit.org/show_bug.cgi?id=18505>
    
            Reviewed by Tim Hatcher.
    
            * page/inspector/ResourcesPanel.js:
            (WebInspector.ResourcesPanel.sourceFrameForResource): Added.
            * page/inspector/inspector.css: Added back rules for the search field
            that were removed in r31736.
            * page/inspector/inspector.html:
              - Removed the disabled attribute from the search field
              - Added back the #searchResults and #searchResultsResizer divs which
                were removed in r31736
            * page/inspector/inspector.js:
            (WebInspector.set showingSearchResults): Updated for class rename
            panels -> main-panels.
            (WebInspector.loaded): Added back the mousedown event listener for the
            search results resizer that was removed in r31736.
            (WebInspector.searchResultsResizerDrag): Updated for class rename
            panels -> main-panels.
            (WebInspector.performSearch):
              - Changed to use sourceFrameForResource
              - Changed to use showResource
              - Changed to save/restore the focused element around the setting of
                the current panel
              - Changed to get the source document from the match range instead of
                by crawling back up to the source view
              - Changed to bind the onselect handlers to this so that we can
                access the Elements/Resources panels
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31972 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b0fc075e