Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js

Issue 2182783002: Revert of DevTools: cleanup treeoutline expand logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/treeoutline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698