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

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

Issue 2878243002: Revert of DevTools: format keys in object previews using sans serif. (Closed)
Patch Set: Created 3 years, 7 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
Index: third_party/WebKit/Source/devtools/front_end/object_ui/RemoteObjectPreviewFormatter.js
diff --git a/third_party/WebKit/Source/devtools/front_end/object_ui/RemoteObjectPreviewFormatter.js b/third_party/WebKit/Source/devtools/front_end/object_ui/RemoteObjectPreviewFormatter.js
index dd79f6adeafb22aacbcac21f06311549671b8c6c..31a94d7e43cb604776e67cdd94c5242de2a289bd 100644
--- a/third_party/WebKit/Source/devtools/front_end/object_ui/RemoteObjectPreviewFormatter.js
+++ b/third_party/WebKit/Source/devtools/front_end/object_ui/RemoteObjectPreviewFormatter.js
@@ -46,17 +46,16 @@
parentElement.createChild('span', 'object-description').textContent = text + ' ';
}
- var propertiesElement = parentElement.createChild('span', 'object-properties-preview source-code');
- propertiesElement.createTextChild(isArrayOrTypedArray ? '[' : '{');
+ parentElement.createTextChild(isArrayOrTypedArray ? '[' : '{');
if (preview.entries)
- this._appendEntriesPreview(propertiesElement, preview);
+ this._appendEntriesPreview(parentElement, preview);
else if (isArrayOrTypedArray)
- this._appendArrayPropertiesPreview(propertiesElement, preview);
+ this._appendArrayPropertiesPreview(parentElement, preview);
else
- this._appendObjectPropertiesPreview(propertiesElement, preview);
+ this._appendObjectPropertiesPreview(parentElement, preview);
if (preview.overflow)
- propertiesElement.createChild('span').textContent = '\u2026';
- propertiesElement.createTextChild(isArrayOrTypedArray ? ']' : '}');
+ parentElement.createChild('span').textContent = '\u2026';
+ parentElement.createTextChild(isArrayOrTypedArray ? ']' : '}');
}
/**
@@ -223,7 +222,7 @@
}
if (type === 'function') {
- span.textContent = '\u0192';
+ span.textContent = 'function';
return span;
}
@@ -238,10 +237,7 @@
}
if (type === 'object' && !subtype) {
- var preview = this._abbreviateFullQualifiedClassName(description);
- if (preview === 'Object')
- preview = '{\u2026}';
- span.textContent = preview;
+ span.textContent = this._abbreviateFullQualifiedClassName(description);
span.title = description;
return span;
}

Powered by Google App Engine
This is Rietveld 408576698