Commit 92352ce6 authored by sergeyv@chromium.org's avatar sergeyv@chromium.org

DevTools: Clear current target in TimelineModelImpl's reset only if timeline is not recording

BUG=397216

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

git-svn-id: svn://svn.chromium.org/blink/trunk@179148 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 32cf5a52
......@@ -175,7 +175,6 @@ WebInspector.TimelineModelImpl.prototype = {
if (cpuProfile)
WebInspector.TimelineJSProfileProcessor.mergeJSProfileIntoTimeline(this, cpuProfile);
this.dispatchEventToListeners(WebInspector.TimelineModel.Events.RecordingStopped);
this._currentTarget = null;
},
/**
......@@ -272,6 +271,8 @@ WebInspector.TimelineModelImpl.prototype = {
reset: function()
{
if (!this._collectionEnabled)
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