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

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

Issue 382633008: Followup to r177831. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update nodeToIdMap Created 6 years, 5 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/InspectorNodeIds.cpp
diff --git a/Source/core/inspector/InspectorNodeIds.cpp b/Source/core/inspector/InspectorNodeIds.cpp
index d39a78a9d45c61d9f224ee27061e610468e79258..7400d194b56eee766db886413453d73b30b4e218 100644
--- a/Source/core/inspector/InspectorNodeIds.cpp
+++ b/Source/core/inspector/InspectorNodeIds.cpp
@@ -37,7 +37,7 @@ int InspectorNodeIds::idForNode(Node* node)
if (it != nodeToIdMap().end())
return it->value;
int id = s_nextNodeId++;
- it->value = id;
+ nodeToIdMap().set(node, id);
ASSERT(idToNodeMap().find(id) == idToNodeMap().end());
idToNodeMap().set(id, node);
return id;
« 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