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

Unified Diff: Source/WebCore/inspector/InspectorDOMStorageAgent.cpp

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/Inspector.json ('k') | Source/WebCore/inspector/front-end/DOMStorage.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/InspectorDOMStorageAgent.cpp
===================================================================
--- Source/WebCore/inspector/InspectorDOMStorageAgent.cpp (revision 145492)
+++ Source/WebCore/inspector/InspectorDOMStorageAgent.cpp (working copy)
@@ -1,6 +1,5 @@
/*
* Copyright (C) 2010 Google 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
@@ -223,7 +222,7 @@
resource->bind(m_frontend);
}
-void InspectorDOMStorageAgent::didDispatchDOMStorageEvent(const String& key, const String& oldValue, const String& newValue, StorageType storageType, SecurityOrigin* securityOrigin, Page*)
+void InspectorDOMStorageAgent::didDispatchDOMStorageEvent(const String&, const String&, const String&, StorageType storageType, SecurityOrigin* securityOrigin, Page*)
{
if (!m_frontend || !m_enabled)
return;
@@ -233,14 +232,7 @@
if (id.isEmpty())
return;
- if (key.isNull())
- m_frontend->domstorage()->domStorageItemsCleared(id);
- else if (newValue.isNull())
- m_frontend->domstorage()->domStorageItemRemoved(id, key);
- else if (oldValue.isNull())
- m_frontend->domstorage()->domStorageItemAdded(id, key, newValue);
- else
- m_frontend->domstorage()->domStorageItemUpdated(id, key, oldValue, newValue);
+ m_frontend->domstorage()->domStorageUpdated(id);
}
void InspectorDOMStorageAgent::clearResources()
« no previous file with comments | « Source/WebCore/inspector/Inspector.json ('k') | Source/WebCore/inspector/front-end/DOMStorage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698