| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 /** | 632 /** |
| 633 * @param {?Array.<!SDK.RemoteObjectProperty>} properties | 633 * @param {?Array.<!SDK.RemoteObjectProperty>} properties |
| 634 * @this {!Console.ConsoleViewMessage} | 634 * @this {!Console.ConsoleViewMessage} |
| 635 */ | 635 */ |
| 636 function printArrayResult(properties) { | 636 function printArrayResult(properties) { |
| 637 if (!properties) { | 637 if (!properties) { |
| 638 result.appendChild(this._formatParameterAsObject(array, false)); | 638 result.appendChild(this._formatParameterAsObject(array, false)); |
| 639 return; | 639 return; |
| 640 } | 640 } |
| 641 | 641 |
| 642 var titleElement = createElement('span'); | 642 var titleElement = createElementWithClass('span', 'console-object-preview'
); |
| 643 var elements = {}; | 643 var elements = {}; |
| 644 for (var i = 0; i < properties.length; ++i) { | 644 for (var i = 0; i < properties.length; ++i) { |
| 645 var property = properties[i]; | 645 var property = properties[i]; |
| 646 var name = property.name; | 646 var name = property.name; |
| 647 if (isNaN(name)) | 647 if (isNaN(name)) |
| 648 continue; | 648 continue; |
| 649 if (property.getter) | 649 if (property.getter) |
| 650 elements[name] = this._formatAsAccessorProperty(array, [name], true); | 650 elements[name] = this._formatAsAccessorProperty(array, [name], true); |
| 651 else if (property.value) | 651 else if (property.value) |
| 652 elements[name] = this._formatAsArrayEntry(property.value); | 652 elements[name] = this._formatAsArrayEntry(property.value); |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1234 * @return {!Element} | 1234 * @return {!Element} |
| 1235 */ | 1235 */ |
| 1236 toMessageElement() { | 1236 toMessageElement() { |
| 1237 if (!this._element) { | 1237 if (!this._element) { |
| 1238 super.toMessageElement(); | 1238 super.toMessageElement(); |
| 1239 this._element.classList.toggle('collapsed', this._collapsed); | 1239 this._element.classList.toggle('collapsed', this._collapsed); |
| 1240 } | 1240 } |
| 1241 return this._element; | 1241 return this._element; |
| 1242 } | 1242 } |
| 1243 }; | 1243 }; |
| OLD | NEW |