Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js |
index 88394e264d6298cd10b887e4860b92ad36993763..467ff2288e85a648b397c8905743e903cec70204 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js |
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js |
@@ -871,9 +871,7 @@ WebInspector.ConsoleViewMessage.prototype = { |
matchesFilterRegex: function(regexObject) |
{ |
regexObject.lastIndex = 0; |
- var text = this.searchableElement().deepTextContent(); |
- if (this._anchorElement) |
- text += " " + this._anchorElement.textContent; |
+ var text = this.formattedMessage().deepTextContent(); |
return regexObject.test(text); |
}, |
@@ -1179,15 +1177,15 @@ WebInspector.ConsoleViewMessage.prototype = { |
if (!this._searchRegex) |
return; |
- var text = this.searchableElement().deepTextContent(); |
+ var text = this.formattedMessage().deepTextContent(); |
var match; |
this._searchRegex.lastIndex = 0; |
var sourceRanges = []; |
while ((match = this._searchRegex.exec(text)) && match[0]) |
sourceRanges.push(new WebInspector.SourceRange(match.index, match[0].length)); |
- if (sourceRanges.length && this.searchableElement()) |
- this._searchHighlightNodes = WebInspector.highlightSearchResults(this.searchableElement(), sourceRanges, this._searchHiglightNodeChanges); |
+ if (sourceRanges.length && this.formattedMessage()) |
+ this._searchHighlightNodes = WebInspector.highlightSearchResults(this.formattedMessage(), sourceRanges, this._searchHiglightNodeChanges); |
}, |
/** |
@@ -1215,15 +1213,6 @@ WebInspector.ConsoleViewMessage.prototype = { |
}, |
/** |
- * @return {!Element} |
- */ |
- searchableElement: function() |
- { |
- this.formattedMessage(); |
- return this._messageElement; |
- }, |
- |
- /** |
* @param {string} string |
* @return {?Element} |
*/ |