| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 } | 577 } |
| 578 } else { | 578 } else { |
| 579 property.parentObject = value; | 579 property.parentObject = value; |
| 580 treeNode.appendChild(new WebInspector.ObjectPropertyTreeElement(prop
erty, linkifier)); | 580 treeNode.appendChild(new WebInspector.ObjectPropertyTreeElement(prop
erty, linkifier)); |
| 581 } | 581 } |
| 582 } | 582 } |
| 583 if (internalProperties) { | 583 if (internalProperties) { |
| 584 for (var i = 0; i < internalProperties.length; i++) { | 584 for (var i = 0; i < internalProperties.length; i++) { |
| 585 internalProperties[i].parentObject = value; | 585 internalProperties[i].parentObject = value; |
| 586 var treeElement = new WebInspector.ObjectPropertyTreeElement(interna
lProperties[i], linkifier); | 586 var treeElement = new WebInspector.ObjectPropertyTreeElement(interna
lProperties[i], linkifier); |
| 587 if (internalProperties[i].name === "[[Entries]]") { |
| 588 treeElement.setExpandable(true); |
| 589 treeElement.expand(); |
| 590 } |
| 587 treeNode.appendChild(treeElement); | 591 treeNode.appendChild(treeElement); |
| 588 if (internalProperties[i].name === "[[Entries]]") | |
| 589 treeElement.expand(); | |
| 590 } | 592 } |
| 591 } | 593 } |
| 592 WebInspector.ObjectPropertyTreeElement._appendEmptyPlaceholderIfNeeded(treeN
ode, emptyPlaceholder); | 594 WebInspector.ObjectPropertyTreeElement._appendEmptyPlaceholderIfNeeded(treeN
ode, emptyPlaceholder); |
| 593 } | 595 } |
| 594 | 596 |
| 595 /** | 597 /** |
| 596 * @param {!TreeElement} treeNode | 598 * @param {!TreeElement} treeNode |
| 597 * @param {?string=} emptyPlaceholder | 599 * @param {?string=} emptyPlaceholder |
| 598 */ | 600 */ |
| 599 WebInspector.ObjectPropertyTreeElement._appendEmptyPlaceholderIfNeeded = functio
n(treeNode, emptyPlaceholder) | 601 WebInspector.ObjectPropertyTreeElement._appendEmptyPlaceholderIfNeeded = functio
n(treeNode, emptyPlaceholder) |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1258 | 1260 |
| 1259 result = currentName + (result ? "." + result : ""); | 1261 result = currentName + (result ? "." + result : ""); |
| 1260 current = current.parent; | 1262 current = current.parent; |
| 1261 } | 1263 } |
| 1262 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertie
sSectionExpandController._treeOutlineId]; | 1264 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertie
sSectionExpandController._treeOutlineId]; |
| 1263 result = treeOutlineId + (result ? ":" + result : ""); | 1265 result = treeOutlineId + (result ? ":" + result : ""); |
| 1264 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cached
PathSymbol] = result; | 1266 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cached
PathSymbol] = result; |
| 1265 return result; | 1267 return result; |
| 1266 } | 1268 } |
| 1267 } | 1269 } |
| OLD | NEW |