Index: Source/devtools/front_end/ui/FlameChart.js |
diff --git a/Source/devtools/front_end/ui/FlameChart.js b/Source/devtools/front_end/ui/FlameChart.js |
index 8c539eeb72945028ec98b1a806ce756b5530ba96..d8c5a01b2516ae45ac6283a25f7ea8371fbd5b73 100644 |
--- a/Source/devtools/front_end/ui/FlameChart.js |
+++ b/Source/devtools/front_end/ui/FlameChart.js |
@@ -486,7 +486,7 @@ WebInspector.FlameChart.prototype = { |
} |
this._cancelAnimation(); |
- this._cancelWindowTimesAnimation = WebInspector.animateFunction(this._animateWindowTimes.bind(this), |
+ this._cancelWindowTimesAnimation = WebInspector.animateFunction(this.element.window(), this._animateWindowTimes.bind(this), |
[{from: this._timeWindowLeft, to: startTime}, {from: this._timeWindowRight, to: endTime}], 5, |
this._animationCompleted.bind(this)); |
this._pendingAnimationTimeLeft = startTime; |
@@ -1287,7 +1287,7 @@ WebInspector.FlameChart.prototype = { |
{ |
if (this._updateTimerId || this._cancelWindowTimesAnimation) |
return; |
- this._updateTimerId = requestAnimationFrame(this.update.bind(this)); |
+ this._updateTimerId = this.element.window().requestAnimationFrame(this.update.bind(this)); |
}, |
update: function() |