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

Unified Diff: Source/core/inspector/InspectorDOMAgent.cpp

Issue 319043004: DevTools: Remove InspectorDOMAgent::m_idToNodesMap entries correctly. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorDOMAgent.cpp
diff --git a/Source/core/inspector/InspectorDOMAgent.cpp b/Source/core/inspector/InspectorDOMAgent.cpp
index 376ad6b3f13ac57ca389cad4c81741adce9a799f..fd81491202f257d06e25b581b09125d78c23507b 100644
--- a/Source/core/inspector/InspectorDOMAgent.cpp
+++ b/Source/core/inspector/InspectorDOMAgent.cpp
@@ -346,6 +346,7 @@ void InspectorDOMAgent::unbind(Node* node, NodeToIdMap* nodesMap)
return;
m_idToNode.remove(id);
+ m_idToNodesMap.remove(id);
if (node->isFrameOwnerElement()) {
Document* contentDocument = toHTMLFrameOwnerElement(node)->contentDocument();
@@ -557,6 +558,7 @@ void InspectorDOMAgent::discardFrontendBindings()
m_searchResults.clear();
m_documentNodeToIdMap.clear();
m_idToNode.clear();
+ m_idToNodesMap.clear();
releaseDanglingNodes();
m_childrenRequested.clear();
m_cachedChildCount.clear();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698