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

Unified Diff: Source/core/dom/WeakNodeMap.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/dom/WeakIdentifierMap.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/WeakNodeMap.h
diff --git a/Source/core/dom/WeakNodeMap.h b/Source/core/dom/WeakNodeMap.h
deleted file mode 100644
index cf6491b5d1412dfa7b664cf51caa8007e7099dac..0000000000000000000000000000000000000000
--- a/Source/core/dom/WeakNodeMap.h
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WeakNodeMap_h
-#define WeakNodeMap_h
-
-// Oilpan supports weak maps, so we no longer need WeakNodeMap.
-#if !ENABLE(OILPAN)
-
-#include "core/dom/Node.h"
-#include "core/dom/WeakIdentifierMap.h"
-
-namespace blink {
-
-template<> struct WeakIdentifierMapTraits<Node> {
- static void removedFromIdentifierMap(Node* node) { node->clearFlag(Node::HasWeakReferencesFlag); }
- static void addedToIdentifierMap(Node* node) { node->setFlag(Node::HasWeakReferencesFlag); }
-};
-
-typedef WeakIdentifierMap<Node> WeakNodeMap;
-
-} // namespace blink
-
-#endif // !ENABLE(OILPAN)
-
-#endif // WeakNodeMap_h
« no previous file with comments | « Source/core/dom/WeakIdentifierMap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698