Index: Source/devtools/front_end/console/ConsoleViewMessage.js |
diff --git a/Source/devtools/front_end/console/ConsoleViewMessage.js b/Source/devtools/front_end/console/ConsoleViewMessage.js |
index 50968de8b92b7d15813da12fe2e1993b230f89cf..bfb60758e4f906c4f8cdbfee9ed5de82df84a7ba 100644 |
--- a/Source/devtools/front_end/console/ConsoleViewMessage.js |
+++ b/Source/devtools/front_end/console/ConsoleViewMessage.js |
@@ -1269,6 +1269,24 @@ WebInspector.ConsoleViewMessage.prototype = { |
{ |
return this._message.messageText; |
}, |
+ |
+ /** |
+ * @return {!string} |
+ */ |
+ getText: function() |
+ { |
+ return this._messageElement.textContent; |
+ }, |
+ |
+ highlightMatch: function(start, end, isCurrent) |
+ { |
+ if (!this._formattedMessage) |
+ return; |
+ |
+ console.log("Highlighting from position " + start + " to " + end); |
+ WebInspector.highlightSearchResults(this._messageElement, |
+ [new WebInspector.SourceRange(start, end - start + 1)], undefined, isCurrent); |
+ }, |
} |
/** |