Index: Source/devtools/front_end/TimelinePanel.js |
diff --git a/Source/devtools/front_end/TimelinePanel.js b/Source/devtools/front_end/TimelinePanel.js |
index 71fc05530a74916ff0cbe9bed06a2411dbc277d4..ffb690dec1a3a98f7fbb8ac588d1dba2b57e20d7 100644 |
--- a/Source/devtools/front_end/TimelinePanel.js |
+++ b/Source/devtools/front_end/TimelinePanel.js |
@@ -795,7 +795,7 @@ WebInspector.TimelinePanel.prototype = { |
*/ |
_updateSearchHighlight: function(revealRecord, shouldJump, jumpBackwards) |
{ |
- if (this._textFilter || !this._searchRegex) { |
+ if (!this._textFilter.isEmpty() || !this._searchRegex) { |
this._clearHighlight(); |
return; |
} |
@@ -1160,6 +1160,14 @@ WebInspector.TimelineTextFilter = function() |
WebInspector.TimelineTextFilter.prototype = { |
/** |
+ * @return {boolean} |
+ */ |
+ isEmpty: function() |
+ { |
+ return !this._regex; |
+ }, |
+ |
+ /** |
* @param {?RegExp} regex |
*/ |
setRegex: function(regex) |