Summary: | Web Inspector: Resources panel: display the current search match index in the toolbar. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Vsevolod Vlasov <vsevik> | ||||||
Component: | Web Inspector (Deprecated) | Assignee: | Vsevolod Vlasov <vsevik> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 61119 | ||||||||
Attachments: |
|
Description
Vsevolod Vlasov
2011-08-11 06:17:21 PDT
Created attachment 103613 [details]
Patch
Comment on attachment 103613 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=103613&action=review Too much logic here, please provide a test. > Source/WebCore/inspector/front-end/ResourcesPanel.js:1632 > + return this._searchResult(this._traverser.next(currentTreeElement), 0, this._currentMatchIndex % this._matchesCount + 1); Why % ? Shouldn't _currentMatchIndex be normalized on its own? > Source/WebCore/inspector/front-end/ResourcesPanel.js:1650 > + return this._searchResult(treeElement, treeElement.searchMatchesCount - 1, currentMatchIndex); I think this requires a test! Created attachment 112314 [details]
Patch
Committed r98339: <http://trac.webkit.org/changeset/98339> |