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

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

Issue 2553293002: DevTools: add tooltip for truncated classnames and full name for title (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/console/console-format-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ab921035075be6a964f385da527f261060e4d969..f2722d0e821bc1e389ef2c79dd2c550b1d57424c 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/RemoteObjectPreviewFormatter.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/RemoteObjectPreviewFormatter.js
@@ -15,10 +15,8 @@ Components.RemoteObjectPreviewFormatter = class {
parentElement.appendChild(this.renderPropertyPreview(preview.type, preview.subtype, description));
return;
}
- if (description && preview.subtype !== 'array') {
- var text = preview.subtype ? description : this._abbreviateFullQualifiedClassName(description);
- parentElement.createTextChildren(text, ' ');
- }
+ if (description && preview.subtype !== 'array')
+ parentElement.createTextChildren(description, ' ');
var isArray = preview.subtype === 'array' || preview.subtype === 'typedarray';
parentElement.createTextChild(isArray ? '[' : '{');
@@ -184,6 +182,7 @@ Components.RemoteObjectPreviewFormatter = class {
if (type === 'object' && !subtype) {
span.textContent = this._abbreviateFullQualifiedClassName(description);
+ span.title = description;
return span;
}
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/console/console-format-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698