Chromium Code Reviews| 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 3a371180192746cbf40985d9fc711c5858dfce01..e8f454fe02dad45a110c963f07020f2759cf922b 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js |
| @@ -587,12 +587,11 @@ WebInspector.ConsoleViewMessage.prototype = { |
| }, |
| /** |
| - * @param {!WebInspector.RemoteObject} array |
| * @return {boolean} |
| */ |
| - useArrayPreviewInFormatter: function(array) |
| + usePrintedArrayFormatter: function() |
|
lushnikov
2016/09/28 16:54:03
can we make it private?
luoe
2016/09/28 17:50:55
Done.
|
| { |
| - return this._message.type !== WebInspector.ConsoleMessage.MessageType.DirXML; |
| + return this._message.type !== WebInspector.ConsoleMessage.MessageType.DirXML && this._message.type !== WebInspector.ConsoleMessage.MessageType.Result; |
| }, |
| /** |
| @@ -602,8 +601,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)); |
| }, |