Commit bcfa67b1 authored by yurys@chromium.org's avatar yurys@chromium.org

DevTools: skip animation when resetting Timeline flame chart to initial state

Animation will break if endTime is Infinity which is the case when we reset Timeline flame chart time window to initial range [0, Infinity)

BUG=424506

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

git-svn-id: svn://svn.chromium.org/blink/trunk@183965 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 7fbca568
......@@ -434,7 +434,7 @@ WebInspector.FlameChart.prototype = {
*/
setWindowTimes: function(startTime, endTime)
{
if (this._muteAnimation || this._timeWindowLeft === 0 || this._timeWindowRight === Infinity) {
if (this._muteAnimation || this._timeWindowLeft === 0 || this._timeWindowRight === Infinity || (startTime === 0 && endTime === Infinity)) {
// Initial setup.
this._timeWindowLeft = startTime;
this._timeWindowRight = endTime;
......
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