Chromium Code Reviews| Index: Source/devtools/front_end/components/SearchableView.js |
| diff --git a/Source/devtools/front_end/components/SearchableView.js b/Source/devtools/front_end/components/SearchableView.js |
| index 43af570b31df68f33ae58f53d08e43d62da09a2b..0500ba88f80851680bdd36eac4dfa0d6b5cba3aa 100644 |
| --- a/Source/devtools/front_end/components/SearchableView.js |
| +++ b/Source/devtools/front_end/components/SearchableView.js |
| @@ -207,14 +207,14 @@ WebInspector.SearchableView.prototype = { |
| { |
| this._caseSensitiveButton.toggled = !this._caseSensitiveButton.toggled; |
| this._saveSetting(); |
| - this._performSearch(true, true); |
| + this._performSearch(false, true); |
| }, |
| _toggleRegexSearch: function() |
| { |
| this._regexButton.toggled = !this._regexButton.toggled; |
| this._saveSetting(); |
| - this._performSearch(true, true); |
| + this._performSearch(false, true); |
| }, |
| /** |
| @@ -365,6 +365,16 @@ WebInspector.SearchableView.prototype = { |
| this._matchesElement.textContent = ""; |
| }, |
| + refreshSearch: function() |
| + { |
| + if (!this._searchIsVisible) |
| + return; |
| + this._clearSearch(); |
|
lushnikov
2014/10/22 11:12:37
these three lines are "resetSearch()" essentially
|
| + this._updateReplaceVisibility(); |
| + this._matchesElement.textContent = ""; |
| + this._performSearch(false, false); |
| + }, |
| + |
| /** |
| * @return {boolean} |
| */ |