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

Unified Diff: Source/WebCore/inspector/front-end/DOMStorage.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
Index: Source/WebCore/inspector/front-end/DOMStorage.js
===================================================================
--- Source/WebCore/inspector/front-end/DOMStorage.js (revision 145492)
+++ Source/WebCore/inspector/front-end/DOMStorage.js (working copy)
@@ -1,6 +1,5 @@
/*
* Copyright (C) 2008 Nokia Inc. All rights reserved.
- * 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
@@ -97,10 +96,7 @@
WebInspector.DOMStorageModel.Events = {
DOMStorageAdded: "DOMStorageAdded",
- DOMStorageItemsCleared: "DOMStorageItemsCleared",
- DOMStorageItemRemoved: "DOMStorageItemRemoved",
- DOMStorageItemAdded: "DOMStorageItemAdded",
- DOMStorageItemUpdated: "DOMStorageItemUpdated"
+ DOMStorageUpdated: "DOMStorageUpdated"
}
WebInspector.DOMStorageModel.prototype = {
@@ -116,65 +112,13 @@
/**
* @param {DOMStorageAgent.StorageId} storageId
*/
- _domStorageItemsCleared: function(storageId)
+ _domStorageUpdated: function(storageId)
{
- var domStorage = this._storages[storageId];
- var storageData = {
- storage: domStorage
- };
- this.dispatchEventToListeners(WebInspector.DOMStorageModel.Events.DOMStorageItemsCleared, storageData);
+ this.dispatchEventToListeners(WebInspector.DOMStorageModel.Events.DOMStorageUpdated, this._storages[storageId]);
},
/**
* @param {DOMStorageAgent.StorageId} storageId
- * @param {string} key
- */
- _domStorageItemRemoved: function(storageId, key)
- {
- var domStorage = this._storages[storageId];
- var storageData = {
- storage: domStorage,
- key: key
- };
- this.dispatchEventToListeners(WebInspector.DOMStorageModel.Events.DOMStorageItemRemoved, storageData);
- },
-
- /**
- * @param {DOMStorageAgent.StorageId} storageId
- * @param {string} key
- * @param {string} newValue
- */
- _domStorageItemAdded: function(storageId, key, newValue)
- {
- var domStorage = this._storages[storageId];
- var storageData = {
- storage: domStorage,
- key: key,
- newValue: newValue
- };
- this.dispatchEventToListeners(WebInspector.DOMStorageModel.Events.DOMStorageItemAdded, storageData);
- },
-
- /**
- * @param {DOMStorageAgent.StorageId} storageId
- * @param {string} key
- * @param {string} oldValue
- * @param {string} newValue
- */
- _domStorageItemUpdated: function(storageId, key, oldValue, newValue)
- {
- var domStorage = this._storages[storageId];
- var storageData = {
- storage: domStorage,
- key: key,
- oldValue: oldValue,
- newValue: newValue
- };
- this.dispatchEventToListeners(WebInspector.DOMStorageModel.Events.DOMStorageItemUpdated, storageData);
- },
-
- /**
- * @param {DOMStorageAgent.StorageId} storageId
* @return {WebInspector.DOMStorage}
*/
storageForId: function(storageId)
@@ -222,40 +166,10 @@
/**
* @param {string} storageId
*/
- domStorageItemsCleared: function(storageId)
+ domStorageUpdated: function(storageId)
{
- this._model._domStorageItemsCleared(storageId);
- },
-
- /**
- * @param {string} storageId
- * @param {string} key
- */
- domStorageItemRemoved: function(storageId, key)
- {
- this._model._domStorageItemRemoved(storageId, key);
- },
-
- /**
- * @param {string} storageId
- * @param {string} key
- * @param {string} newValue
- */
- domStorageItemAdded: function(storageId, key, newValue)
- {
- this._model._domStorageItemAdded(storageId, key, newValue);
- },
-
- /**
- * @param {string} storageId
- * @param {string} key
- * @param {string} oldValue
- * @param {string} newValue
- */
- domStorageItemUpdated: function(storageId, key, oldValue, newValue)
- {
- this._model._domStorageItemUpdated(storageId, key, oldValue, newValue);
- },
+ this._model._domStorageUpdated(storageId);
+ }
}
/**
« no previous file with comments | « Source/WebCore/inspector/InspectorDOMStorageAgent.cpp ('k') | Source/WebCore/inspector/front-end/DOMStorageItemsView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698