Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fa0025699702d941201aa100fc958556ba8672df
      
https://github.com/WebKit/WebKit/commit/fa0025699702d941201aa100fc958556ba8672df
  Author: Razvan Caliman <[email protected]>
  Date:   2026-01-30 (Fri, 30 Jan 2026)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Views/SearchResultTreeElement.js

  Log Message:
  -----------
  Web Inspector: Optimize substring operations in WI.SearchResultTreeElement
https://bugs.webkit.org/show_bug.cgi?id=305653
rdar://168311426

Reviewed by BJ Burg and Devin Rousso.

WI.SearchResultTreeElement is given the entire line of text where a match occurs
along with a text range that identifies the match.

To show some context, a portion of the line is trimmed around the match.
For minified files, the line could be the entire contents of the file.

This patch reduces the number of string operations done on the line of text.

* Source/WebInspectorUI/UserInterface/Views/SearchResultTreeElement.js:
(WI.SearchResultTreeElement.truncateAndHighlightTitle):
(WI.SearchResultTreeElement.prototype.get filterableData):

Canonical link: https://commits.webkit.org/306486@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to