Patch to follow.
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>