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

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

Issue 2514123003: DevTools: non-italic previews that always wrap (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/console/consoleView.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/console/consoleView.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698