Changeset 195536 in webkit
- Timestamp:
- Jan 25, 2016 8:19:30 AM (8 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r195534 r195536 1 2016-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 1 16 2016-01-25 Matt Baker <mattbaker@apple.com> 2 17 -
trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js
r195504 r195536 164 164 this._currentTimelineOverview.shown(); 165 165 this._contentViewContainer.shown(); 166 this._clearTimelineNavigationItem.enabled = !this._recording.readonly ;166 this._clearTimelineNavigationItem.enabled = !this._recording.readonly && !isNaN(this._recording.startTime); 167 167 168 168 this._currentContentViewDidChange(); … … 503 503 if (!this._updating) 504 504 this._startUpdatingCurrentTime(event.data.startTime); 505 this._clearTimelineNavigationItem.enabled = !this._recording.readonly; 505 506 } 506 507 … … 655 656 for (var timelineView of this._timelineViewMap.values()) 656 657 timelineView.reset(); 658 this._clearTimelineNavigationItem.enabled = false; 657 659 } 658 660
Note: See TracChangeset
for help on using the changeset viewer.