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

Unified Diff: third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js

Issue 2782773002: [DevTools] Remove SDKModels' fromTarget methods (Closed)
Patch Set: addressed review comments Created 3 years, 9 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
Index: third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js b/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js
index 1c45cbb71d43dab826e883b480500cbf7ec8dee4..7e627659bc2c454a9d299fb5ee5776d67195603c 100644
--- a/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js
+++ b/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js
@@ -39,8 +39,8 @@ Screencast.ScreencastView = class extends UI.VBox {
super();
this._target = screenCaptureModel.target();
this._screenCaptureModel = screenCaptureModel;
- this._domModel = SDK.DOMModel.fromTarget(this._target);
- this._resourceTreeModel = SDK.ResourceTreeModel.fromTarget(this._target);
+ this._domModel = this._target.model(SDK.DOMModel);
+ this._resourceTreeModel = this._target.model(SDK.ResourceTreeModel);
this.setMinimumSize(150, 150);
this.registerRequiredCSS('screencast/screencastView.css');

Powered by Google App Engine
This is Rietveld 408576698