| Index: third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeOutline.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeOutline.js b/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeOutline.js
|
| index 8f653af2e59216c911c4006d20fc45a4a797927a..f1d5918db3563f1a7d6240669091788bb5b9dce3 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeOutline.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeOutline.js
|
| @@ -638,7 +638,10 @@ WebInspector.ElementsTreeOutline.prototype = {
|
| {
|
| var listItem = anchor.enclosingNodeOrSelfWithNodeName("li");
|
| var node = /** @type {!WebInspector.ElementsTreeElement} */ (listItem.treeElement).node();
|
| - this._loadDimensionsForNode(node, WebInspector.DOMPresentationUtils.buildImagePreviewContents.bind(WebInspector.DOMPresentationUtils, node.target(), anchor.href, true, showPopover));
|
| + var resourceTreeModel = WebInspector.ResourceTreeModel.fromTarget(node.target());
|
| + if (!resourceTreeModel)
|
| + return;
|
| + this._loadDimensionsForNode(node, WebInspector.DOMPresentationUtils.buildImagePreviewContents.bind(WebInspector.DOMPresentationUtils, resourceTreeModel, anchor.href, true, showPopover));
|
|
|
| /**
|
| * @param {!Element=} contents
|
|
|