Changeset 195536 in webkit


Ignore:
Timestamp:
Jan 25, 2016 8:19:30 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: timelines clear button should be inactive if nothing can be cleared
https://bugs.webkit.org/show_bug.cgi?id=132756

Patch by Johan K. Jensen <jj@johanjensen.dk> on 2016-01-25
Reviewed by Timothy Hatcher.

  • UserInterface/Views/TimelineRecordingContentView.js:

(WebInspector.TimelineRecordingContentView.prototype.shown):
Enable clear button if timeline is not readonly and contains data, when switching timelines.
(WebInspector.TimelineRecordingContentView.prototype._capturingStarted):
Enable clear button when a capturing starts.
(WebInspector.TimelineRecordingContentView.prototype._recordingReset):
Disable clear button after resetting recording.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r195534 r195536  
     12016-01-25  Johan K. Jensen  <jj@johanjensen.dk>
     2
     3        Web Inspector: timelines clear button should be inactive if nothing can be cleared
     4        https://bugs.webkit.org/show_bug.cgi?id=132756
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * UserInterface/Views/TimelineRecordingContentView.js:
     9        (WebInspector.TimelineRecordingContentView.prototype.shown):
     10        Enable clear button if timeline is not readonly and contains data, when switching timelines.
     11        (WebInspector.TimelineRecordingContentView.prototype._capturingStarted):
     12        Enable clear button when a capturing starts.
     13        (WebInspector.TimelineRecordingContentView.prototype._recordingReset):
     14        Disable clear button after resetting recording.
     15
    1162016-01-25  Matt Baker  <mattbaker@apple.com>
    217
  • trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js

    r195504 r195536  
    164164        this._currentTimelineOverview.shown();
    165165        this._contentViewContainer.shown();
    166         this._clearTimelineNavigationItem.enabled = !this._recording.readonly;
     166        this._clearTimelineNavigationItem.enabled = !this._recording.readonly && !isNaN(this._recording.startTime);
    167167
    168168        this._currentContentViewDidChange();
     
    503503        if (!this._updating)
    504504            this._startUpdatingCurrentTime(event.data.startTime);
     505        this._clearTimelineNavigationItem.enabled = !this._recording.readonly;
    505506    }
    506507
     
    655656        for (var timelineView of this._timelineViewMap.values())
    656657            timelineView.reset();
     658        this._clearTimelineNavigationItem.enabled = false;
    657659    }
    658660
Note: See TracChangeset for help on using the changeset viewer.