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

Unified Diff: Source/core/dom/DOMNodeIds.h

Issue 1089933004: DevTools: make DOMNodeIds a trivial wrapper around WeakIdentifierMap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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/core/core.gypi ('k') | Source/core/dom/DOMNodeIds.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMNodeIds.h
diff --git a/Source/core/dom/DOMNodeIds.h b/Source/core/dom/DOMNodeIds.h
index e8b18c3dbf4b4b66f3f89806ef0ef067b1bbb817..2defabbe288955e26a07a79baf692fed5466562a 100644
--- a/Source/core/dom/DOMNodeIds.h
+++ b/Source/core/dom/DOMNodeIds.h
@@ -6,11 +6,21 @@
#define DOMNodeIds_h
#include "core/CoreExport.h"
+#include "core/dom/WeakIdentifierMap.h"
namespace blink {
class Node;
+#if !ENABLE(OILPAN)
+template<> struct WeakIdentifierMapTraits<Node> {
+ static void removedFromIdentifierMap(Node*);
+ static void addedToIdentifierMap(Node*);
+};
+#endif
+
+typedef WeakIdentifierMap<Node> WeakNodeMap;
+
class CORE_EXPORT DOMNodeIds {
public:
static int idForNode(Node*);
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/DOMNodeIds.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698