Changeset 241875 in webkit


Ignore:
Timestamp:
Feb 21, 2019 11:59:01 AM (5 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Canvas: recordings with a single frame sometimes missing TreeElement
https://bugs.webkit.org/show_bug.cgi?id=194687

Reviewed by Joseph Pecoraro.

  • UserInterface/Views/CanvasSidebarPanel.js:

(WI.CanvasSidebarPanel):
Wait until the entire Recording has been processed before setting the selected action.

  • UserInterface/Views/CanvasSidebarPanel.css:

(.sidebar > .panel.navigation.canvas.has-recordings > .content > .recording-content):
Drive-by: ensure that the recording TreeOutline container element has the full height to
take advantage of for virtualization.

  • UserInterface/Views/RecordingStateDetailsSidebarPanel.js:

(WI.RecordingStateDetailsSidebarPanel.prototype.set recording):
Drive-by: clear the DataGrid list when changing recordings since we removed all subviews.

Location:
trunk/Source/WebInspectorUI
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r241874 r241875  
     12019-02-21  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: Canvas: recordings with a single frame sometimes missing TreeElement
     4        https://bugs.webkit.org/show_bug.cgi?id=194687
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        * UserInterface/Views/CanvasSidebarPanel.js:
     9        (WI.CanvasSidebarPanel):
     10        Wait until the entire `Recording` has been processed before setting the selected action.
     11
     12        * UserInterface/Views/CanvasSidebarPanel.css:
     13        (.sidebar > .panel.navigation.canvas.has-recordings > .content > .recording-content):
     14        Drive-by: ensure that the recording `TreeOutline` container element has the full height to
     15        take advantage of for virtualization.
     16
     17        * UserInterface/Views/RecordingStateDetailsSidebarPanel.js:
     18        (WI.RecordingStateDetailsSidebarPanel.prototype.set recording):
     19        Drive-by: clear the `DataGrid` list when changing recordings since we removed all subviews.
     20
    1212019-02-21  Devin Rousso  <drousso@apple.com>
    222
  • trunk/Source/WebInspectorUI/UserInterface/Views/CanvasSidebarPanel.css

    r239760 r241875  
    4949
    5050.sidebar > .panel.navigation.canvas.has-recordings > .content > .recording-content {
     51    flex-grow: 1;
    5152    overflow-y: scroll;
    5253}
  • trunk/Source/WebInspectorUI/UserInterface/Views/CanvasSidebarPanel.js

    r241601 r241875  
    581581        this._createRecordingActionTreeElement(action, index, isInitialStateAction ? this._recordingTreeOutline : this._recordingTreeOutline.children.lastValue);
    582582
    583         if (isInitialStateAction && !this._recording[WI.CanvasSidebarPanel.SelectedActionSymbol])
    584             this.action = action;
     583        if (this._recording.ready && !this._recording[WI.CanvasSidebarPanel.SelectedActionSymbol])
     584            this.action = this._recording.actions[0];
    585585
    586586        if (action === this._recording.actions.lastValue && this._recordingProcessingOptionsContainer) {
  • trunk/Source/WebInspectorUI/UserInterface/Views/RecordingStateDetailsSidebarPanel.js

    r237808 r241875  
    5959        for (let subview of this.contentView.subviews)
    6060            this.contentView.removeSubview(subview);
     61
     62        this._dataGrids = [];
    6163    }
    6264
Note: See TracChangeset for help on using the changeset viewer.