Changeset 162528 in webkit
- Timestamp:
- Jan 22, 2014, 9:54:32 AM (11 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r162527 r162528 1 2014-01-21 Timothy Hatcher <timothy@apple.com> 2 3 Remember the Timeline Overview zoom and selection between sessions. 4 5 https://bugs.webkit.org/show_bug.cgi?id=127369 6 7 Reviewed by Joseph Pecoraro. 8 9 * UserInterface/TimelineOverview.js: 10 (WebInspector.TimelineOverview): 11 (WebInspector.TimelineOverview.prototype.set secondsPerPixel): 12 (WebInspector.TimelineOverview.prototype._timeRangeSelectionChanged): 13 1 14 2014-01-21 Timothy Hatcher <timothy@apple.com> 2 15 -
trunk/Source/WebInspectorUI/UserInterface/TimelineOverview.js
r162419 r162528 59 59 this._scrollContainer.appendChild(this._scrollWidthSizer); 60 60 61 this._secondsPerPixelSetting = new WebInspector.Setting("timeline-overview-seconds-per-pixel", 0.01); 62 this._selectionStartTimeSetting = new WebInspector.Setting("timeline-overview-selection-start-time", 0); 63 this._selectionDurationSetting = new WebInspector.Setting("timeline-overview-selection-duration", 5); 64 61 65 this._startTime = 0; 62 66 this._currentTime = 0; 63 67 this._endTime = 0; 64 this._secondsPerPixel = 0.0025;68 this._secondsPerPixel = this._secondsPerPixelSetting.value; 65 69 this._scrollStartTime = 0; 66 70 67 this.selectionStartTime = 0;68 this.selectionDuration = 3;71 this.selectionStartTime = this._selectionStartTimeSetting.value; 72 this.selectionDuration = this._selectionDurationSetting.value; 69 73 }; 70 74 … … 135 139 136 140 this._secondsPerPixel = x; 141 this._secondsPerPixelSetting.value = x; 137 142 138 143 this._needsLayout(); … … 334 339 _timeRangeSelectionChanged: function(event) 335 340 { 341 this._selectionStartTimeSetting.value = this.selectionStartTime - this._startTime; 342 this._selectionDurationSetting.value = this.selectionDuration; 343 336 344 this.dispatchEventToListeners(WebInspector.TimelineOverview.Event.TimeRangeSelectionChanged); 337 345 }
Note:
See TracChangeset
for help on using the changeset viewer.