| 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 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1314 }, | 1314 }, |
| 1315 | 1315 |
| 1316 /** | 1316 /** |
| 1317 * @param {!WebInspector.DOMNode} node | 1317 * @param {!WebInspector.DOMNode} node |
| 1318 * @return {!Array.<!WebInspector.DOMNode>} visibleChildren | 1318 * @return {!Array.<!WebInspector.DOMNode>} visibleChildren |
| 1319 */ | 1319 */ |
| 1320 _visibleChildren: function(node) | 1320 _visibleChildren: function(node) |
| 1321 { | 1321 { |
| 1322 var visibleChildren = WebInspector.ElementsTreeElement.visibleShadowRoot
s(node); | 1322 var visibleChildren = WebInspector.ElementsTreeElement.visibleShadowRoot
s(node); |
| 1323 | 1323 |
| 1324 if (node.importedDocument()) | 1324 var importedDocument = node.importedDocument(); |
| 1325 visibleChildren.push(node.importedDocument()); | 1325 if (importedDocument) |
| 1326 visibleChildren.push(importedDocument); |
| 1326 | 1327 |
| 1327 if (node.templateContent()) | 1328 var templateContent = node.templateContent(); |
| 1328 visibleChildren.push(node.templateContent()); | 1329 if (templateContent) |
| 1330 visibleChildren.push(templateContent); |
| 1329 | 1331 |
| 1330 var beforePseudoElement = node.beforePseudoElement(); | 1332 var beforePseudoElement = node.beforePseudoElement(); |
| 1331 if (beforePseudoElement) | 1333 if (beforePseudoElement) |
| 1332 visibleChildren.push(beforePseudoElement); | 1334 visibleChildren.push(beforePseudoElement); |
| 1333 | 1335 |
| 1334 if (node.childNodeCount()) | 1336 if (node.childNodeCount()) |
| 1335 visibleChildren = visibleChildren.concat(node.children()); | 1337 visibleChildren = visibleChildren.concat(node.children()); |
| 1336 | 1338 |
| 1337 var afterPseudoElement = node.afterPseudoElement(); | 1339 var afterPseudoElement = node.afterPseudoElement(); |
| 1338 if (afterPseudoElement) | 1340 if (afterPseudoElement) |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1780 if (node) { | 1782 if (node) { |
| 1781 this.treeOutline._selectedDOMNode = node; | 1783 this.treeOutline._selectedDOMNode = node; |
| 1782 this.treeOutline._selectedNodeChanged(); | 1784 this.treeOutline._selectedNodeChanged(); |
| 1783 } | 1785 } |
| 1784 } | 1786 } |
| 1785 return true; | 1787 return true; |
| 1786 }, | 1788 }, |
| 1787 | 1789 |
| 1788 __proto__: TreeElement.prototype | 1790 __proto__: TreeElement.prototype |
| 1789 } | 1791 } |
| OLD | NEW |