Changeset 242962 in webkit


Ignore:
Timestamp:
Mar 14, 2019 1:48:38 PM (5 years ago)
Author:
Devin Rousso
Message:

Web Inspector: REGRESSION: Canvas: the first processed action should be selected as soon as it's available if no previous selected action exists
https://bugs.webkit.org/show_bug.cgi?id=195732
<rdar://problem/48875214>

Reviewed by Matt Baker.

  • UserInterface/Views/CanvasSidebarPanel.js:

(WI.CanvasSidebarPanel.prototype._handleRecordingProcessedAction):
Rather than wait until the entire recording is ready, set the selected action as soon as the
first action is ready (assuming there isn't already a selected action).

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r242948 r242962  
     12019-03-14  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: REGRESSION: Canvas: the first processed action should be selected as soon as it's available if no previous selected action exists
     4        https://bugs.webkit.org/show_bug.cgi?id=195732
     5        <rdar://problem/48875214>
     6
     7        Reviewed by Matt Baker.
     8
     9        * UserInterface/Views/CanvasSidebarPanel.js:
     10        (WI.CanvasSidebarPanel.prototype._handleRecordingProcessedAction):
     11        Rather than wait until the entire recording is ready, set the selected action as soon as the
     12        first action is ready (assuming there isn't already a selected action).
     13
    1142019-03-14  Joseph Pecoraro  <pecoraro@apple.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Views/CanvasSidebarPanel.js

    r242604 r242962  
    578578        this._createRecordingActionTreeElement(action, index, isInitialStateAction ? this._recordingTreeOutline : this._recordingTreeOutline.children.lastValue);
    579579
     580        if (!this._recording[WI.CanvasSidebarPanel.SelectedActionSymbol]) {
     581            console.assert(action === this._recording.actions[0]);
     582            this.action = this._recording.actions[0];
     583        }
     584
    580585        if (this._recording.ready) {
    581586            this._recording.removeEventListener(null, null, this);
    582 
    583             if (!this._recording[WI.CanvasSidebarPanel.SelectedActionSymbol])
    584                 this.action = this._recording.actions[0];
    585587
    586588            if (this._recordingProcessingOptionsContainer) {
Note: See TracChangeset for help on using the changeset viewer.