Summary: | Web Inspector: [Scripts] Implement iterative match highlighting in the "Go to Function" dialog item list | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alexander Pavlov (apavlov) <apavlov> | ||||||
Component: | Web Inspector (Deprecated) | Assignee: | Alexander Pavlov (apavlov) <apavlov> | ||||||
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 | ||||||||
Attachments: |
|
Description
Alexander Pavlov (apavlov)
2011-12-26 04:42:40 PST
Created attachment 120550 [details]
Patch
Comment on attachment 120550 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=120550&action=review > Source/WebCore/inspector/front-end/JavaScriptOutlineDialog.js:455 > + this._regExp = query ? this._dialog._createSearchRegExp(query, true) : null; this._regex > Source/WebCore/inspector/front-end/JavaScriptOutlineDialog.js:475 > + if (this._highlightTimer) So is this this._timer or this._highlightTimer? > Source/WebCore/inspector/front-end/JavaScriptOutlineDialog.js:483 > + const chunkSize = 50; It seems like computing visible range and highlighting it synchronously might require less code. > Source/WebCore/inspector/front-end/JavaScriptOutlineDialog.js:499 > + var text = element._text; Could you use highlightRangesWithStyleClass instead? Created attachment 120553 [details]
[PATCH] Comments addressed
Comment on attachment 120553 [details] [PATCH] Comments addressed View in context: https://bugs.webkit.org/attachment.cgi?id=120553&action=review > Source/WebCore/inspector/front-end/JavaScriptOutlineDialog.js:232 > + this._startMatchHighlighting(); clearHighlight > Source/WebCore/inspector/front-end/JavaScriptOutlineDialog.js:274 > + _startMatchHighlighting: function(query) inline > Source/WebCore/inspector/front-end/JavaScriptOutlineDialog.js:465 > + start: function(query) highlightViewportItems Committed: <http://trac.webkit.org/changeset/103684> |