Index: Source/WebCore/inspector/front-end/ResourcesPanel.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/ResourcesPanel.js (revision 145492) |
+++ Source/WebCore/inspector/front-end/ResourcesPanel.js (working copy) |
@@ -1,7 +1,6 @@ |
/* |
* Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. |
* Copyright (C) 2009 Joseph Pecoraro |
- * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
@@ -118,6 +117,7 @@ |
WebInspector.domStorageModel.storages().forEach(this._addDOMStorage.bind(this)); |
WebInspector.domStorageModel.addEventListener(WebInspector.DOMStorageModel.Events.DOMStorageAdded, this._domStorageAdded, this); |
+ WebInspector.domStorageModel.addEventListener(WebInspector.DOMStorageModel.Events.DOMStorageUpdated, this._domStorageUpdated, this); |
} |
WebInspector.ResourcesPanel.prototype = { |
@@ -469,7 +469,7 @@ |
var view; |
view = this._domStorageViews.get(domStorage); |
if (!view) { |
- view = new WebInspector.DOMStorageItemsView(domStorage, WebInspector.domStorageModel); |
+ view = new WebInspector.DOMStorageItemsView(domStorage); |
this._domStorageViews.put(domStorage, view); |
} |
@@ -572,6 +572,17 @@ |
database.getTableNames(tableNamesCallback); |
}, |
+ /** |
+ * @param {WebInspector.Event} event |
+ */ |
+ _domStorageUpdated: function(event) |
+ { |
+ var storage = /** @type {WebInspector.DOMStorage}*/ (event.data); |
+ var view = this._domStorageViews.get(storage); |
+ if (this.visibleView && view === this.visibleView) |
+ view.update(); |
+ }, |
+ |
_populateApplicationCacheTree: function() |
{ |
this._applicationCacheModel = new WebInspector.ApplicationCacheModel(); |