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

Unified Diff: Source/devtools/front_end/components/Linkifier.js

Issue 1262063003: Devtools UI: Remove redundant tooltips (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | Source/devtools/front_end/elements/ComputedStyleWidget.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/components/Linkifier.js
diff --git a/Source/devtools/front_end/components/Linkifier.js b/Source/devtools/front_end/components/Linkifier.js
index 69ffc34ff45972d00cad66837a9ac5f576cdc4a5..01d542a180e244418ac11d2f531b5dea70f8e4bd 100644
--- a/Source/devtools/front_end/components/Linkifier.js
+++ b/Source/devtools/front_end/components/Linkifier.js
@@ -510,9 +510,9 @@ WebInspector.linkifyURLAsNode = function(url, linkText, classes, isExternal, too
if (href !== null)
a.href = href;
a.className = classes;
- if (typeof tooltipText === "undefined")
+ if (!tooltipText && linkText !== url)
a.title = url;
- else if (typeof tooltipText !== "string" || tooltipText.length)
+ else if (tooltipText)
a.title = tooltipText;
a.textContent = linkText.trimMiddle(WebInspector.Linkifier.MaxLengthForDisplayedURLs);
if (isExternal)
« no previous file with comments | « no previous file | Source/devtools/front_end/elements/ComputedStyleWidget.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698