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

Unified Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js

Issue 2349143006: DevTools: ConsoleViewFormatter rename _element to _contentElement, _wrapperElement to _element (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
index b4e2abf0b71f6d8c124ef39b5b21194572a2a460..51147c41b4834b4ae0fda11e1748d0117d153a37 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js
@@ -1253,13 +1253,13 @@ WebInspector.ConsoleCommand.prototype = {
*/
contentElement: function()
{
- if (!this._element) {
- this._element = createElementWithClass("div", "console-user-command");
- this._element.message = this;
+ if (!this._contentElement) {
+ this._contentElement = createElementWithClass("div", "console-user-command");
+ this._contentElement.message = this;
this._formattedCommand = createElementWithClass("span", "console-message-text source-code");
this._formattedCommand.textContent = this.text.replaceControlCharacters();
- this._element.appendChild(this._formattedCommand);
+ this._contentElement.appendChild(this._formattedCommand);
if (this._formattedCommand.textContent.length < WebInspector.ConsoleCommand.MaxLengthToIgnoreHighlighter) {
var javascriptSyntaxHighlighter = new WebInspector.DOMSyntaxHighlighter("text/javascript", true);
@@ -1268,7 +1268,7 @@ WebInspector.ConsoleCommand.prototype = {
this._updateSearch();
}
}
- return this._element;
+ return this._contentElement;
},
_updateSearch: function()
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698