RESOLVED FIXED 125878
Web Inspector: add the basics of TimelineOverview
https://bugs.webkit.org/show_bug.cgi?id=125878
Summary Web Inspector: add the basics of TimelineOverview
Timothy Hatcher
Reported 2013-12-17 15:46:31 PST
Add a new TimelineOverview class that has a time ruler and tracks the current recording time. This class will eventually manage the timeline overview graphs and time window selection.
Attachments
Patch (32.76 KB, patch)
2013-12-17 15:53 PST, Timothy Hatcher
joepeck: review+
timothy: commit-queue-
Timothy Hatcher
Comment 1 2013-12-17 15:53:52 PST
Joseph Pecoraro
Comment 2 2013-12-17 16:32:00 PST
Comment on attachment 219458 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=219458&action=review r=me > Source/WebInspectorUI/UserInterface/TimelineContentView.js:189 > + var timespanSinceLastUpdate = (timestamp - this._lastUpdateTimestamp) / 1000 || 0; console.assert(timestamp > this._lastUpdateTimestamp)? > Source/WebInspectorUI/UserInterface/TimelineOverview.js:44 > + this.zeroTime = 0; > + this.secondsPerPixel = 0.0025; Is this suppose to be this.startTime = 0? There is no access to this.zeroTime and there is no getter/setter for it. > Source/WebInspectorUI/UserInterface/TimelineRecording.js:99 > + if (isNaN(this._startTime)) > + this._startTime = record.startTime; I think this is supposed to be: isNaN(record.startTime) > Source/WebInspectorUI/UserInterface/TimelineRuler.js:378 > + this._markerElementMap.forEach(function(markerElement, marker) { > + var newLeftPosition = (marker.time - this._startTime) / duration; > + > + this._updateLeftPositionOfElement(markerElement, newLeftPosition, visibleWidth); > + > + if (!markerElement.parentNode) > + this._markersElement.appendChild(markerElement); > + }.bind(this)); No need for the .bind(). You can use Map.prototype.forEach's second optional "thisObject" parameter. this._markerElementMap.forEach(function() { ... }, this);
Timothy Hatcher
Comment 3 2014-01-20 19:02:41 PST
Radar WebKit Bug Importer
Comment 4 2014-01-20 19:03:14 PST
Note You need to log in before you can comment on or make changes to this bug.