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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/RemoteObjectPreviewFormatter.js

Issue 2557573002: DevTools: show name descriptions before formatted TypedArrays (Closed)
Patch Set: fix test Created 4 years 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
Index: third_party/WebKit/Source/devtools/front_end/components/RemoteObjectPreviewFormatter.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/RemoteObjectPreviewFormatter.js b/third_party/WebKit/Source/devtools/front_end/components/RemoteObjectPreviewFormatter.js
index 1fc9f74bbb4cc8793bd489b207c2b906132e84b8..ab921035075be6a964f385da527f261060e4d969 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/RemoteObjectPreviewFormatter.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/RemoteObjectPreviewFormatter.js
@@ -15,12 +15,12 @@ Components.RemoteObjectPreviewFormatter = class {
parentElement.appendChild(this.renderPropertyPreview(preview.type, preview.subtype, description));
return;
}
- var isArray = preview.subtype === 'array' || preview.subtype === 'typedarray';
- if (description && !isArray) {
+ if (description && preview.subtype !== 'array') {
var text = preview.subtype ? description : this._abbreviateFullQualifiedClassName(description);
parentElement.createTextChildren(text, ' ');
}
+ var isArray = preview.subtype === 'array' || preview.subtype === 'typedarray';
parentElement.createTextChild(isArray ? '[' : '{');
if (preview.entries)
this._appendEntriesPreview(parentElement, preview);

Powered by Google App Engine
This is Rietveld 408576698