Commit f273728a authored by loislo@chromium.org's avatar loislo@chromium.org

TimelineFlameChart: fix for exception in highlightTimeRange which happens when...

TimelineFlameChart: fix for exception in highlightTimeRange which happens when entryIndex is incorrect.

It happens when newly recorded timeline has fewer elements than the old timeline.
So we need to reset FlameChart when we start the new recording session.

BUG=
R=pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170308 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent a4bc6ab2
......@@ -454,6 +454,7 @@ WebInspector.TimelineFlameChart.prototype = {
_onRecordingStarted: function()
{
this._automaticallySizeWindow = true;
this._mainView.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