| Index: third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
|
| index 43df4dd5c596ebe1314e4780f048783a1c9291a2..cc1c85ce83e0742976f497701beef0e2d584b7da 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js
|
| @@ -56,21 +56,21 @@ WebInspector.ResourcesPanel = function()
|
| this._applicationTreeElement.appendChild(clearStorageTreeElement);
|
|
|
| var storageTreeElement = this._addSidebarSection(WebInspector.UIString("Storage"));
|
| - this.localStorageListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Local Storage"), "LocalStorage", ["domstorage-storage-tree-item", "local-storage"]);
|
| + this.localStorageListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Local Storage"), "LocalStorage", ["table-tree-item", "resource-tree-item"]);
|
| storageTreeElement.appendChild(this.localStorageListTreeElement);
|
| - this.sessionStorageListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Session Storage"), "SessionStorage", ["domstorage-storage-tree-item", "session-storage"]);
|
| + this.sessionStorageListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Session Storage"), "SessionStorage", ["table-tree-item", "resource-tree-item"]);
|
| storageTreeElement.appendChild(this.sessionStorageListTreeElement);
|
| this.indexedDBListTreeElement = new WebInspector.IndexedDBTreeElement(this);
|
| storageTreeElement.appendChild(this.indexedDBListTreeElement);
|
| - this.databasesListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Web SQL"), "Databases", ["database-storage-tree-item"]);
|
| + this.databasesListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Web SQL"), "Databases", ["database-tree-item", "resource-tree-item"]);
|
| storageTreeElement.appendChild(this.databasesListTreeElement);
|
| - this.cookieListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Cookies"), "Cookies", ["cookie-storage-tree-item"]);
|
| + this.cookieListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Cookies"), "Cookies", ["cookie-tree-item", "resource-tree-item"]);
|
| storageTreeElement.appendChild(this.cookieListTreeElement);
|
|
|
| var cacheTreeElement = this._addSidebarSection(WebInspector.UIString("Cache"));
|
| this.cacheStorageListTreeElement = new WebInspector.ServiceWorkerCacheTreeElement(this);
|
| cacheTreeElement.appendChild(this.cacheStorageListTreeElement);
|
| - this.applicationCacheListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Application Cache"), "ApplicationCache", ["application-cache-storage-tree-item"]);
|
| + this.applicationCacheListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Application Cache"), "ApplicationCache", ["appcache-tree-item", "table-tree-item", "resource-tree-item"]);
|
| cacheTreeElement.appendChild(this.applicationCacheListTreeElement);
|
|
|
| this.resourcesListTreeElement = this._addSidebarSection(WebInspector.UIString("Frames"));
|
| @@ -436,7 +436,7 @@ WebInspector.ResourcesPanel.prototype = {
|
| {
|
| console.assert(!this._domStorageTreeElements.get(domStorage));
|
|
|
| - var domStorageTreeElement = new WebInspector.DOMStorageTreeElement(this, domStorage, (domStorage.isLocalStorage ? "local-storage" : "session-storage"));
|
| + var domStorageTreeElement = new WebInspector.DOMStorageTreeElement(this, domStorage);
|
| this._domStorageTreeElements.set(domStorage, domStorageTreeElement);
|
| if (domStorage.isLocalStorage)
|
| this.localStorageListTreeElement.appendChild(domStorageTreeElement);
|
| @@ -984,7 +984,7 @@ WebInspector.StorageCategoryTreeElement.prototype = {
|
| */
|
| WebInspector.FrameTreeElement = function(storagePanel, frame)
|
| {
|
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, "", ["navigator-tree-item", "navigator-folder-tree-item"]);
|
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, "", ["navigator-tree-item", "navigator-frame-tree-item"]);
|
| this._frame = frame;
|
| this.frameNavigated(frame);
|
| }
|
| @@ -1204,7 +1204,7 @@ WebInspector.FrameResourceTreeElement.prototype = {
|
| */
|
| WebInspector.DatabaseTreeElement = function(storagePanel, database)
|
| {
|
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, database.name, ["database-storage-tree-item"], true);
|
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, database.name, ["database-tree-item", "resource-tree-item"], true);
|
| this._database = database;
|
| }
|
|
|
| @@ -1259,7 +1259,7 @@ WebInspector.DatabaseTreeElement.prototype = {
|
| */
|
| WebInspector.DatabaseTableTreeElement = function(storagePanel, database, tableName)
|
| {
|
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, tableName, ["database-table-storage-tree-item"]);
|
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, tableName, ["table-tree-item", "resource-tree-item"]);
|
| this._database = database;
|
| this._tableName = tableName;
|
| }
|
| @@ -1292,7 +1292,7 @@ WebInspector.DatabaseTableTreeElement.prototype = {
|
| */
|
| WebInspector.ServiceWorkerCacheTreeElement = function(storagePanel)
|
| {
|
| - WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspector.UIString("Cache Storage"), "CacheStorage", ["service-worker-cache-storage-tree-item"]);
|
| + WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspector.UIString("Cache Storage"), "CacheStorage", ["database-tree-item", "resource-tree-item"]);
|
| }
|
|
|
| WebInspector.ServiceWorkerCacheTreeElement.prototype = {
|
| @@ -1402,7 +1402,7 @@ WebInspector.ServiceWorkerCacheTreeElement.prototype = {
|
| */
|
| WebInspector.SWCacheTreeElement = function(storagePanel, model, cache)
|
| {
|
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, cache.cacheName + " - " + cache.securityOrigin, ["service-worker-cache-tree-item"]);
|
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, cache.cacheName + " - " + cache.securityOrigin, ["table-tree-item", "resource-tree-item"]);
|
| this._model = model;
|
| this._cache = cache;
|
| }
|
| @@ -1473,7 +1473,7 @@ WebInspector.SWCacheTreeElement.prototype = {
|
| */
|
| WebInspector.ServiceWorkersTreeElement = function(storagePanel)
|
| {
|
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UIString("Service Workers"), [], false, true);
|
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UIString("Service Workers"), ["service-worker-tree-item", "resource-tree-item"], false);
|
| }
|
|
|
| WebInspector.ServiceWorkersTreeElement.prototype = {
|
| @@ -1508,7 +1508,7 @@ WebInspector.ServiceWorkersTreeElement.prototype = {
|
| */
|
| WebInspector.AppManifestTreeElement = function(storagePanel)
|
| {
|
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UIString("Manifest"), [], false, true);
|
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UIString("Manifest"), ["manifest-tree-item", "resource-tree-item"], false, false);
|
| }
|
|
|
| WebInspector.AppManifestTreeElement.prototype = {
|
| @@ -1543,7 +1543,7 @@ WebInspector.AppManifestTreeElement.prototype = {
|
| */
|
| WebInspector.ClearStorageTreeElement = function(storagePanel)
|
| {
|
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UIString("Clear storage"), [], false, true);
|
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UIString("Clear storage"), ["clear-storage-tree-item", "resource-tree-item"], false, false);
|
| }
|
|
|
| WebInspector.ClearStorageTreeElement.prototype = {
|
| @@ -1578,7 +1578,7 @@ WebInspector.ClearStorageTreeElement.prototype = {
|
| */
|
| WebInspector.IndexedDBTreeElement = function(storagePanel)
|
| {
|
| - WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspector.UIString("IndexedDB"), "IndexedDB", ["indexed-db-storage-tree-item"]);
|
| + WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspector.UIString("IndexedDB"), "IndexedDB", ["database-tree-item", "resource-tree-item"]);
|
| }
|
|
|
| WebInspector.IndexedDBTreeElement.prototype = {
|
| @@ -1704,7 +1704,7 @@ WebInspector.IndexedDBTreeElement.prototype = {
|
| */
|
| WebInspector.IDBDatabaseTreeElement = function(storagePanel, model, databaseId)
|
| {
|
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, databaseId.name + " - " + databaseId.securityOrigin, ["indexed-db-storage-tree-item"]);
|
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, databaseId.name + " - " + databaseId.securityOrigin, ["database-tree-item", "resource-tree-item"]);
|
| this._model = model;
|
| this._databaseId = databaseId;
|
| this._idbObjectStoreTreeElements = {};
|
| @@ -1811,7 +1811,7 @@ WebInspector.IDBDatabaseTreeElement.prototype = {
|
| */
|
| WebInspector.IDBObjectStoreTreeElement = function(storagePanel, model, databaseId, objectStore)
|
| {
|
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, objectStore.name, ["indexed-db-object-store-storage-tree-item"]);
|
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, objectStore.name, ["table-tree-item", "resource-tree-item"]);
|
| this._model = model;
|
| this._databaseId = databaseId;
|
| this._idbIndexTreeElements = {};
|
| @@ -1942,7 +1942,7 @@ WebInspector.IDBObjectStoreTreeElement.prototype = {
|
| */
|
| WebInspector.IDBIndexTreeElement = function(storagePanel, model, databaseId, objectStore, index)
|
| {
|
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, index.name, ["indexed-db-index-storage-tree-item"]);
|
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, index.name, ["index-tree-item", "resource-tree-item"]);
|
| this._model = model;
|
| this._databaseId = databaseId;
|
| this._objectStore = objectStore;
|
| @@ -2007,9 +2007,9 @@ WebInspector.IDBIndexTreeElement.prototype = {
|
| * @constructor
|
| * @extends {WebInspector.BaseStorageTreeElement}
|
| */
|
| -WebInspector.DOMStorageTreeElement = function(storagePanel, domStorage, className)
|
| +WebInspector.DOMStorageTreeElement = function(storagePanel, domStorage)
|
| {
|
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, domStorage.securityOrigin ? domStorage.securityOrigin : WebInspector.UIString("Local Files"), ["domstorage-storage-tree-item", className]);
|
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, domStorage.securityOrigin ? domStorage.securityOrigin : WebInspector.UIString("Local Files"), ["table-tree-item", "resource-tree-item"]);
|
| this._domStorage = domStorage;
|
| }
|
|
|
| @@ -2039,7 +2039,7 @@ WebInspector.DOMStorageTreeElement.prototype = {
|
| */
|
| WebInspector.CookieTreeElement = function(storagePanel, cookieDomain)
|
| {
|
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, cookieDomain ? cookieDomain : WebInspector.UIString("Local Files"), ["cookie-storage-tree-item"]);
|
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, cookieDomain ? cookieDomain : WebInspector.UIString("Local Files"), ["cookie-tree-item", "resource-tree-item"]);
|
| this._cookieDomain = cookieDomain;
|
| }
|
|
|
|
|