Index: Source/devtools/front_end/screencast/ScreencastView.js |
diff --git a/Source/devtools/front_end/screencast/ScreencastView.js b/Source/devtools/front_end/screencast/ScreencastView.js |
index fd1db5f6ec3708c4de59fe42b27a3f6fe9aa4146..ec602a87d56827ebbf60eca277426c9a326ee24a 100644 |
--- a/Source/devtools/front_end/screencast/ScreencastView.js |
+++ b/Source/devtools/front_end/screencast/ScreencastView.js |
@@ -96,8 +96,8 @@ WebInspector.ScreencastView.prototype = { |
this._shortcuts = /** !Object.<number, function(Event=):boolean> */ ({}); |
this._shortcuts[WebInspector.KeyboardShortcut.makeKey("l", WebInspector.KeyboardShortcut.Modifiers.Ctrl)] = this._focusNavigationBar.bind(this); |
- WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.ScreencastFrame, this._screencastFrame, this); |
- WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.ScreencastVisibilityChanged, this._screencastVisibilityChanged, this); |
+ this._target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.ScreencastFrame, this._screencastFrame, this); |
+ this._target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.ScreencastVisibilityChanged, this._screencastVisibilityChanged, this); |
WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Events.SuspendStateChanged, this._onSuspendStateChange, this); |
this._updateGlasspane(); |
@@ -744,7 +744,7 @@ WebInspector.ScreencastView.prototype = { |
_navigateReload: function() |
{ |
- WebInspector.resourceTreeModel.reloadPage(); |
+ this._target.resourceTreeModel.reloadPage(); |
}, |
_navigationUrlKeyUp: function(event) |