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

Unified Diff: Source/devtools/front_end/resources/ResourcesPanel.js

Issue 944343002: DevTools: migrate treeoutline from hasChildren to is/setExpandable(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/resources/ResourcesPanel.js
diff --git a/Source/devtools/front_end/resources/ResourcesPanel.js b/Source/devtools/front_end/resources/ResourcesPanel.js
index 54d177534e600c468de201140db9a205af28b228..dee0ce6e9b1ec4cdd8ae5d2f5696b8db67943112 100644
--- a/Source/devtools/front_end/resources/ResourcesPanel.js
+++ b/Source/devtools/front_end/resources/ResourcesPanel.js
@@ -834,12 +834,12 @@ WebInspector.ResourcesPanel.ResourceRevealer.prototype = {
* @param {!WebInspector.ResourcesPanel} storagePanel
* @param {string} title
* @param {?Array.<string>=} iconClasses
- * @param {boolean=} hasChildren
+ * @param {boolean=} expandable
* @param {boolean=} noIcon
*/
-WebInspector.BaseStorageTreeElement = function(storagePanel, title, iconClasses, hasChildren, noIcon)
+WebInspector.BaseStorageTreeElement = function(storagePanel, title, iconClasses, expandable, noIcon)
{
- TreeElement.call(this, "", hasChildren);
+ TreeElement.call(this, "", expandable);
this._storagePanel = storagePanel;
this._titleText = title;
this._iconClasses = iconClasses;
@@ -1984,10 +1984,8 @@ WebInspector.IDBObjectStoreTreeElement.prototype = {
}
}
- if (this.childCount()) {
- this.hasChildren = true;
+ if (this.childCount())
this.expand();
- }
if (this._view)
this._view.update(this._objectStore);

Powered by Google App Engine
This is Rietveld 408576698