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

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

Issue 2373203002: DevTools: rename useArrayPreviewFormatter and remove ConsoleCommandResult override (Closed)
Patch Set: rebase cl2patch6 Created 4 years, 2 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 | « third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js ('k') | no next file » | 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/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 8566edf715c762cd83b919ff072a9f109daca89f..b83f1d7bdafa605e3a2b8e5b1cc720142d84d844 100644
--- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
+++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js
@@ -613,12 +613,11 @@ WebInspector.ConsoleViewMessage.prototype = {
},
/**
- * @param {!WebInspector.RemoteObject} array
* @return {boolean}
*/
- useArrayPreviewInFormatter: function(array)
+ _usePrintedArrayFormatter: function()
{
- return this._message.type !== WebInspector.ConsoleMessage.MessageType.DirXML;
+ return this._message.type !== WebInspector.ConsoleMessage.MessageType.DirXML && this._message.type !== WebInspector.ConsoleMessage.MessageType.Result;
},
/**
@@ -628,8 +627,8 @@ WebInspector.ConsoleViewMessage.prototype = {
_formatParameterAsArray: function(array, elem)
{
var maxFlatArrayLength = 100;
- if (this.useArrayPreviewInFormatter(array) || array.arrayLength() > maxFlatArrayLength)
- this._formatParameterAsArrayOrObject(array, elem, this.useArrayPreviewInFormatter(array) || array.arrayLength() <= maxFlatArrayLength);
+ if (this._usePrintedArrayFormatter() || array.arrayLength() > maxFlatArrayLength)
+ this._formatParameterAsArrayOrObject(array, elem, this._usePrintedArrayFormatter() || array.arrayLength() <= maxFlatArrayLength);
else
array.getAllProperties(false, this._printArrayResult.bind(this, array, elem));
},
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698