Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(893)

Unified Diff: Source/devtools/front_end/ui/UIUtils.js

Issue 632573002: Adding regex support to search bar in dev tools console (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Implement regex search similar to Sublime Text Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/searchable.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ui/UIUtils.js
diff --git a/Source/devtools/front_end/ui/UIUtils.js b/Source/devtools/front_end/ui/UIUtils.js
index 57f0d156edeffa10a54af1dcad0f1ab71c6233e4..b5151c724fda165ab204362114ced8c3924b4b41 100644
--- a/Source/devtools/front_end/ui/UIUtils.js
+++ b/Source/devtools/front_end/ui/UIUtils.js
@@ -714,11 +714,13 @@ WebInspector.highlightSearchResult = function(element, offset, length, domChange
* @param {!Element} element
* @param {!Array.<!WebInspector.SourceRange>} resultRanges
* @param {!Array.<!Object>=} changes
+ * @param {?Boolean=} isCurrent
* @return {!Array.<!Element>}
*/
-WebInspector.highlightSearchResults = function(element, resultRanges, changes)
+WebInspector.highlightSearchResults = function(element, resultRanges, changes, isCurrent)
{
- return WebInspector.highlightRangesWithStyleClass(element, resultRanges, "highlighted-search-result", changes);
+ var style = isCurrent ? "current-search-result" : "highlighted-search-result";
+ return WebInspector.highlightRangesWithStyleClass(element, resultRanges, style, changes);
}
/**
« no previous file with comments | « Source/devtools/front_end/searchable.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698