Web Inspector: remove extra space before call frames in Canvas backtraces
authorwebkit@devinrousso.com <webkit@devinrousso.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Nov 2017 07:09:15 +0000 (07:09 +0000)
committerwebkit@devinrousso.com <webkit@devinrousso.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Nov 2017 07:09:15 +0000 (07:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=180129

Reviewed by Matt Baker.

* UserInterface/Views/CanvasDetailsSidebarPanel.js:
(WI.CanvasDetailsSidebarPanel.prototype.initialLayout):
* UserInterface/Views/RecordingTraceDetailsSidebarPanel.js:
(WI.RecordingTraceDetailsSidebarPanel):
Hide the disclosure buttons of these TreeOutlines as they don't have children.

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

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/CanvasDetailsSidebarPanel.js
Source/WebInspectorUI/UserInterface/Views/RecordingTraceDetailsSidebarPanel.js

index 13a64a7..7354962 100644 (file)
@@ -1,3 +1,16 @@
+2017-11-28  Devin Rousso  <webkit@devinrousso.com>
+
+        Web Inspector: remove extra space before call frames in Canvas backtraces
+        https://bugs.webkit.org/show_bug.cgi?id=180129
+
+        Reviewed by Matt Baker.
+
+        * UserInterface/Views/CanvasDetailsSidebarPanel.js:
+        (WI.CanvasDetailsSidebarPanel.prototype.initialLayout):
+        * UserInterface/Views/RecordingTraceDetailsSidebarPanel.js:
+        (WI.RecordingTraceDetailsSidebarPanel):
+        Hide the disclosure buttons of these TreeOutlines as they don't have children.
+
 2017-11-28  Matt Baker  <mattbaker@apple.com>
 
         Web Inspector: Clean up backtrace in Canvas details sidebar
index 2846af0..a483e40 100644 (file)
@@ -137,6 +137,7 @@ WI.CanvasDetailsSidebarPanel = class CanvasDetailsSidebarPanel extends WI.Detail
 
         const selectable = false;
         let backtraceTreeOutline = new WI.TreeOutline(null, selectable);
+        backtraceTreeOutline.disclosureButtons = false;
         this._backtraceTreeController = new WI.CallFrameTreeController(backtraceTreeOutline);
 
         let backtraceRow = new WI.DetailsSectionRow;
index 7ddb0f4..3d6f144 100644 (file)
@@ -31,6 +31,7 @@ WI.RecordingTraceDetailsSidebarPanel = class RecordingTraceDetailsSidebarPanel e
 
         const selectable = false;
         this._backtraceTreeOutline = new WI.TreeOutline(null, selectable);
+        this._backtraceTreeOutline.disclosureButtons = false;
         this._backtraceTreeController = new WI.CallFrameTreeController(this._backtraceTreeOutline);
 
         this._recording = null;