| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 | 478 |
| 479 var treeOutlineElement = anchor.enclosingNodeOrSelfWithClass("elements-t
ree-outline"); | 479 var treeOutlineElement = anchor.enclosingNodeOrSelfWithClass("elements-t
ree-outline"); |
| 480 if (!treeOutlineElement) | 480 if (!treeOutlineElement) |
| 481 return; | 481 return; |
| 482 | 482 |
| 483 for (var i = 0; i < this._treeOutlines.length; ++i) { | 483 for (var i = 0; i < this._treeOutlines.length; ++i) { |
| 484 if (this._treeOutlines[i].element !== treeOutlineElement) | 484 if (this._treeOutlines[i].element !== treeOutlineElement) |
| 485 continue; | 485 continue; |
| 486 | 486 |
| 487 var resource = this._treeOutlines[i].target().resourceTreeModel.reso
urceForURL(anchor.href); | 487 var resource = this._treeOutlines[i].target().resourceTreeModel.reso
urceForURL(anchor.href); |
| 488 if (!resource || resource.type !== WebInspector.resourceTypes.Image) | 488 if (!resource || resource.resourceType() !== WebInspector.resourceTy
pes.Image) |
| 489 return; | 489 return; |
| 490 anchor.removeAttribute("title"); | 490 anchor.removeAttribute("title"); |
| 491 return anchor; | 491 return anchor; |
| 492 } | 492 } |
| 493 }, | 493 }, |
| 494 | 494 |
| 495 /** | 495 /** |
| 496 * @param {!WebInspector.DOMNode} node | 496 * @param {!WebInspector.DOMNode} node |
| 497 * @param {function()} callback | 497 * @param {function()} callback |
| 498 */ | 498 */ |
| (...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1572 | 1572 |
| 1573 WebInspector.ElementsPanelFactory.prototype = { | 1573 WebInspector.ElementsPanelFactory.prototype = { |
| 1574 /** | 1574 /** |
| 1575 * @return {!WebInspector.Panel} | 1575 * @return {!WebInspector.Panel} |
| 1576 */ | 1576 */ |
| 1577 createPanel: function() | 1577 createPanel: function() |
| 1578 { | 1578 { |
| 1579 return WebInspector.ElementsPanel.instance(); | 1579 return WebInspector.ElementsPanel.instance(); |
| 1580 } | 1580 } |
| 1581 } | 1581 } |
| OLD | NEW |