Commit 46494d4f authored by yurys@chromium.org's avatar yurys@chromium.org

Clear current target in TimelineModelImpl only when recording has stopped

reset can be called when clearing records in Timeline that is being recorded. After such action recording continues and current Target doesn't change.

BUG=397216
R=loislo@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178907 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 54f10f26
......@@ -166,6 +166,7 @@ WebInspector.TimelineModelImpl.prototype = {
if (cpuProfile)
WebInspector.TimelineJSProfileProcessor.mergeJSProfileIntoTimeline(this, cpuProfile);
this.dispatchEventToListeners(WebInspector.TimelineModel.Events.RecordingStopped);
this._currentTarget = null;
},
/**
......@@ -262,7 +263,6 @@ WebInspector.TimelineModelImpl.prototype = {
reset: function()
{
this._currentTarget = null;
this._payloads = [];
this._stringPool = {};
this._bindings._reset();
......
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