Changeset 241953 in webkit
- Timestamp:
- Feb 22, 2019 10:46:29 AM (5 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r241932 r241953 1 2019-02-22 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Remove unused Timeline record selection code path 4 https://bugs.webkit.org/show_bug.cgi?id=194931 5 6 Reviewed by Devin Rousso. 7 8 * UserInterface/Views/TimelineOverview.js: 9 (WI.TimelineOverview): 10 (WI.TimelineOverview.prototype.userSelectedRecord): Deleted. 11 * UserInterface/Views/TimelineRecordingContentView.js: 12 (WI.TimelineRecordingContentView): 13 (WI.TimelineRecordingContentView.prototype.timelineOverviewUserSelectedRecord): Deleted. 14 * UserInterface/Views/TimelineView.js: 15 (WI.TimelineView.prototype.userSelectedRecordFromOverview): Deleted. 16 1 17 2019-02-21 Darin Adler <darin@apple.com> 2 18 -
trunk/Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js
r241302 r241953 26 26 WI.TimelineOverview = class TimelineOverview extends WI.View 27 27 { 28 constructor(timelineRecording , delegate)28 constructor(timelineRecording) 29 29 { 30 30 super(); … … 46 46 this._recording.addEventListener(WI.TimelineRecording.Event.MarkerAdded, this._markerAdded, this); 47 47 this._recording.addEventListener(WI.TimelineRecording.Event.Reset, this._recordingReset, this); 48 49 this._delegate = delegate;50 48 51 49 this.element.classList.add("timeline-overview"); … … 410 408 411 409 overviewGraph.selectedRecord = record; 412 }413 414 userSelectedRecord(record)415 {416 if (this._delegate && this._delegate.timelineOverviewUserSelectedRecord)417 this._delegate.timelineOverviewUserSelectedRecord(this, record);418 410 } 419 411 -
trunk/Source/WebInspectorUI/UserInterface/Views/TimelineRecordingContentView.js
r241302 r241953 35 35 this.element.classList.add("timeline-recording"); 36 36 37 this._timelineOverview = new WI.TimelineOverview(this._recording , this);37 this._timelineOverview = new WI.TimelineOverview(this._recording); 38 38 this._timelineOverview.addEventListener(WI.TimelineOverview.Event.TimeRangeSelectionChanged, this._timeRangeSelectionChanged, this); 39 39 this._timelineOverview.addEventListener(WI.TimelineOverview.Event.RecordSelected, this._recordSelected, this); … … 261 261 const hasChildren = false; 262 262 return new WI.GeneralTreeElement(iconClassName, title, representedObject, hasChildren); 263 }264 265 // TimelineOverview delegate266 267 timelineOverviewUserSelectedRecord(timelineOverview, timelineRecord)268 {269 let timelineViewForRecord = null;270 for (let timelineView of this._timelineViewMap.values()) {271 if (timelineView.representedObject.type === timelineRecord.type) {272 timelineViewForRecord = timelineView;273 break;274 }275 }276 277 if (!timelineViewForRecord)278 return;279 280 this._timelineContentBrowser.showContentView(timelineViewForRecord);281 timelineViewForRecord.userSelectedRecordFromOverview(timelineRecord);282 263 } 283 264 -
trunk/Source/WebInspectorUI/UserInterface/Views/TimelineView.js
r220119 r241953 296 296 // Protected 297 297 298 userSelectedRecordFromOverview(timelineRecord)299 {300 // Implemented by sub-classes if needed.301 }302 303 298 filterDidChange() 304 299 {
Note: See TracChangeset
for help on using the changeset viewer.