Commit 2b1dd92b authored by yurys@chromium.org's avatar yurys@chromium.org

Update Timeline overview pane when recording is stopped in Frame mode

BUG=None

Review URL: https://codereview.chromium.org/467523002

git-svn-id: svn://svn.chromium.org/blink/trunk@180045 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent fc2d23e9
...@@ -87,8 +87,6 @@ WebInspector.TimelineOverviewPane.prototype = { ...@@ -87,8 +87,6 @@ WebInspector.TimelineOverviewPane.prototype = {
update: function() update: function()
{ {
delete this._refreshTimeout;
if (this._model.isEmpty()) if (this._model.isEmpty())
this._overviewCalculator._setWindow(0, 1000); this._overviewCalculator._setWindow(0, 1000);
else else
...@@ -173,15 +171,6 @@ WebInspector.TimelineOverviewPane.prototype = { ...@@ -173,15 +171,6 @@ WebInspector.TimelineOverviewPane.prototype = {
this._muteOnWindowChanged = false; this._muteOnWindowChanged = false;
}, },
_scheduleRefresh: function()
{
if (this._refreshTimeout)
return;
if (!this.isShowing())
return;
this._refreshTimeout = setTimeout(this.update.bind(this), 300);
},
__proto__: WebInspector.VBox.prototype __proto__: WebInspector.VBox.prototype
} }
......
...@@ -798,18 +798,17 @@ WebInspector.TimelinePanel.prototype = { ...@@ -798,18 +798,17 @@ WebInspector.TimelinePanel.prototype = {
this._updateToggleTimelineButton(false); this._updateToggleTimelineButton(false);
if (this._lazyFrameModel) { if (this._lazyFrameModel) {
this._lazyFrameModel.reset(); this._lazyFrameModel.reset();
if (this._tracingTimelineModel) { if (this._tracingTimelineModel)
this._lazyFrameModel.addTraceEvents(this._tracingTimelineModel.inspectedTargetEvents(), this._tracingModel.sessionId()); this._lazyFrameModel.addTraceEvents(this._tracingTimelineModel.inspectedTargetEvents(), this._tracingModel.sessionId());
this._overviewPane.update(); else
} else {
this._lazyFrameModel.addRecords(this._model.records()); this._lazyFrameModel.addRecords(this._model.records());
}
} }
if (this._tracingTimelineModel) { if (this._tracingTimelineModel) {
this.requestWindowTimes(this._tracingTimelineModel.minimumRecordTime(), this._tracingTimelineModel.maximumRecordTime()); this.requestWindowTimes(this._tracingTimelineModel.minimumRecordTime(), this._tracingTimelineModel.maximumRecordTime());
this._refreshViews(); this._refreshViews();
} }
this._hideProgressPane(); this._hideProgressPane();
this._overviewPane.update();
}, },
_onRecordAdded: function(event) _onRecordAdded: function(event)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment