Index: third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js b/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js |
index 75dae53c2b7dc39de888f459c8d3e5507deebc73..b1c2e7394517f9d41dd00241dab34172b958f668 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js |
+++ b/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js |
@@ -21,8 +21,7 @@ Animation.AnimationModel = class extends SDK.SDKModel { |
/** @type {!Array.<string>} */ |
this._pendingAnimations = []; |
this._playbackRate = 1; |
- var resourceTreeModel = |
- /** @type {!SDK.ResourceTreeModel} */ (SDK.ResourceTreeModel.fromTarget(target)); |
+ var resourceTreeModel = /** @type {!SDK.ResourceTreeModel} */ (target.model(SDK.ResourceTreeModel)); |
resourceTreeModel.addEventListener(SDK.ResourceTreeModel.Events.MainFrameNavigated, this._reset, this); |
var screenCaptureModel = target.model(SDK.ScreenCaptureModel); |
if (screenCaptureModel) |