Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1897)

Unified Diff: Source/devtools/front_end/components/FlameChart.js

Issue 664693003: DevTools: skip animation when resetting Timeline flame chart to initial state (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/components/FlameChart.js
diff --git a/Source/devtools/front_end/components/FlameChart.js b/Source/devtools/front_end/components/FlameChart.js
index 1864e6a5a0bd73f8c5f03f09e5ece28fb4f7f1c5..0ca85fa2008060395435db9cb4edc7d15244c96f 100644
--- a/Source/devtools/front_end/components/FlameChart.js
+++ b/Source/devtools/front_end/components/FlameChart.js
@@ -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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698