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

Unified Diff: third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.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/components/DOMPresentationUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js b/third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js
index cd0c0c92fc66bc389bcbbe496b6df3ac51b0ad38..960c9e1bd90c07cb65ecf57d79e7741bb3d68562 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js
@@ -153,7 +153,7 @@ Components.DOMPresentationUtils.linkifyDeferredNodeReference = function(deferred
*/
Components.DOMPresentationUtils.buildImagePreviewContents = function(
target, originalImageURL, showDimensions, precomputedFeatures) {
- var resourceTreeModel = SDK.ResourceTreeModel.fromTarget(target);
+ var resourceTreeModel = target.model(SDK.ResourceTreeModel);
if (!resourceTreeModel)
return Promise.resolve(/** @type {?Element} */ (null));
var resource = resourceTreeModel.resourceForURL(originalImageURL);

Powered by Google App Engine
This is Rietveld 408576698