| Index: Source/devtools/front_end/elements/ElementsPanel.js
|
| diff --git a/Source/devtools/front_end/elements/ElementsPanel.js b/Source/devtools/front_end/elements/ElementsPanel.js
|
| index 025686a9233d35f10d73179ef94bb228834095d6..4c447af4f2f4221b9dceff70affa6ab7106d9d4b 100644
|
| --- a/Source/devtools/front_end/elements/ElementsPanel.js
|
| +++ b/Source/devtools/front_end/elements/ElementsPanel.js
|
| @@ -472,11 +472,11 @@ WebInspector.ElementsPanel.prototype = {
|
| {
|
| var anchor = element.enclosingNodeOrSelfWithClass("webkit-html-resource-link");
|
| if (!anchor || !anchor.href)
|
| - return null;
|
| + return;
|
|
|
| var treeOutlineElement = anchor.enclosingNodeOrSelfWithClass("elements-tree-outline");
|
| if (!treeOutlineElement)
|
| - return null;
|
| + return;
|
|
|
| for (var i = 0; i < this._treeOutlines.length; ++i) {
|
| if (this._treeOutlines[i].element !== treeOutlineElement)
|
| @@ -484,11 +484,10 @@ WebInspector.ElementsPanel.prototype = {
|
|
|
| var resource = this._treeOutlines[i].target().resourceTreeModel.resourceForURL(anchor.href);
|
| if (!resource || resource.type !== WebInspector.resourceTypes.Image)
|
| - return null;
|
| + return;
|
| anchor.removeAttribute("title");
|
| return anchor;
|
| }
|
| - return null;
|
| },
|
|
|
| /**
|
|
|