Index: Source/devtools/front_end/ui/SplitView.js |
diff --git a/Source/devtools/front_end/ui/SplitView.js b/Source/devtools/front_end/ui/SplitView.js |
index b052e97cf3e5fdd9e6412e02489b4015a3dfbce0..e92b3e0f5600a4d666f5cbf59b5e1c631db0a31c 100644 |
--- a/Source/devtools/front_end/ui/SplitView.js |
+++ b/Source/devtools/front_end/ui/SplitView.js |
@@ -527,10 +527,10 @@ WebInspector.SplitView.prototype = { |
this.dispatchEventToListeners(WebInspector.SplitView.Events.SidebarSizeChanged, this.sidebarSize()); |
return; |
} |
- this._animationFrameHandle = window.requestAnimationFrame(boundAnimationFrame); |
+ this._animationFrameHandle = this.element.window().requestAnimationFrame(boundAnimationFrame); |
} |
boundAnimationFrame = animationFrame.bind(this); |
- this._animationFrameHandle = window.requestAnimationFrame(boundAnimationFrame); |
+ this._animationFrameHandle = this.element.window().requestAnimationFrame(boundAnimationFrame); |
}, |
_cancelAnimation: function() |
@@ -542,7 +542,7 @@ WebInspector.SplitView.prototype = { |
this.element.style.removeProperty("transition"); |
if (this._animationFrameHandle) { |
- window.cancelAnimationFrame(this._animationFrameHandle); |
+ this.element.window().cancelAnimationFrame(this._animationFrameHandle); |
delete this._animationFrameHandle; |
} |
if (this._animationCallback) { |