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

Unified Diff: Source/WebCore/inspector/front-end/ResourcesPanel.js

Issue 12700007: Revert 142161 "Web Inspector: CPU pegged when inspecting LocalSt..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « Source/WebCore/inspector/front-end/DOMStorageItemsView.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/WebCore/inspector/front-end/DOMStorageItemsView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698