Web Inspector: CPU Usage Timeline - Give long thread names a tooltip if they could...
authorjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Mar 2019 23:45:55 +0000 (23:45 +0000)
committerjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Mar 2019 23:45:55 +0000 (23:45 +0000)
https://bugs.webkit.org/show_bug.cgi?id=195314

Reviewed by Devin Rousso.

* UserInterface/Views/CPUUsageView.js:
(WI.CPUUsageView):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243026 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/CPUUsageView.js

index 8fb0d4a..c6afcbb 100644 (file)
@@ -1,5 +1,15 @@
 2019-03-15  Joseph Pecoraro  <pecoraro@apple.com>
 
+        Web Inspector: CPU Usage Timeline - Give long thread names a tooltip if they could be ellipsized
+        https://bugs.webkit.org/show_bug.cgi?id=195314
+
+        Reviewed by Devin Rousso.
+
+        * UserInterface/Views/CPUUsageView.js:
+        (WI.CPUUsageView):
+
+2019-03-15  Joseph Pecoraro  <pecoraro@apple.com>
+
         Web Inspector: CPU Usage Timeline - Reduce the intensity of the orange overlay color in dark mode
         https://bugs.webkit.org/show_bug.cgi?id=195772
 
index 7986415..b3a6514 100644 (file)
@@ -38,6 +38,8 @@ WI.CPUUsageView = class CPUUsageView extends WI.View
             let detailsNameElement = this._detailsElement.appendChild(document.createElement("span"));
             detailsNameElement.classList.add("name");
             detailsNameElement.textContent = displayName;
+            if (displayName.length >= 20)
+                detailsNameElement.title = displayName;
             this._detailsElement.appendChild(document.createElement("br"));
         }