Changeset 227243 in webkit


Ignore:
Timestamp:
Jan 19, 2018 3:01:11 PM (6 years ago)
Author:
Matt Baker
Message:

Web Inspector: Canvas Tab: Multiple "waiting for frames" messages displayed
https://bugs.webkit.org/show_bug.cgi?id=181865
<rdar://problem/36664737>

Reviewed by Devin Rousso.

  • UserInterface/Views/CanvasContentView.js:

(WI.CanvasContentView.prototype._recordingStarted):
(WI.CanvasContentView.prototype._recordingStopped):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r227232 r227243  
     12018-01-19  Matt Baker  <mattbaker@apple.com>
     2
     3        Web Inspector: Canvas Tab: Multiple "waiting for frames" messages displayed
     4        https://bugs.webkit.org/show_bug.cgi?id=181865
     5        <rdar://problem/36664737>
     6
     7        Reviewed by Devin Rousso.
     8
     9        * UserInterface/Views/CanvasContentView.js:
     10        (WI.CanvasContentView.prototype._recordingStarted):
     11        (WI.CanvasContentView.prototype._recordingStopped):
     12
    1132018-01-19  Nikita Vasilyev  <nvasilyev@apple.com>
    214
  • trunk/Source/WebInspectorUI/UserInterface/Views/CanvasContentView.js

    r224726 r227243  
    264264        this._updateRecordNavigationItem();
    265265
     266        if (!this.representedObject.isRecording)
     267            return;
     268
    266269        if (!this._recordingProgressElement) {
    267270            this._recordingProgressElement = this._previewContainerElement.insertAdjacentElement("beforebegin", document.createElement("div"));
     
    298301
    299302        let {canvas, recording} = event.data;
    300         if (canvas !== this.representedObject || !recording)
    301             return;
    302 
    303         this._addRecording(recording);
    304 
    305         this._recordingProgressElement.remove();
    306         this._recordingProgressElement = null;
     303        if (canvas !== this.representedObject)
     304            return;
     305
     306        if (recording)
     307            this._addRecording(recording);
     308
     309        if (this._recordingProgressElement) {
     310            this._recordingProgressElement.remove();
     311            this._recordingProgressElement = null;
     312        }
    307313    }
    308314
Note: See TracChangeset for help on using the changeset viewer.