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

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

Issue 1304043002: Make classes and structures in core/dom fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/DOMArrayPiece.h ('k') | Source/core/dom/DocumentEncodingData.h » ('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 8a05a54e561af7bda2783ed87902081c5d909cfa..52023a46245cf11edffd3698fa3a83dce2b9fccc 100644
--- a/Source/core/dom/DOMNodeIds.h
+++ b/Source/core/dom/DOMNodeIds.h
@@ -8,6 +8,7 @@
#include "core/CoreExport.h"
#include "core/dom/Node.h"
#include "core/dom/WeakIdentifierMap.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -21,6 +22,7 @@ template<> struct WeakIdentifierMapTraits<Node> {
DECLARE_WEAK_IDENTIFIER_MAP(Node);
class CORE_EXPORT DOMNodeIds {
+ STATIC_ONLY(DOMNodeIds);
public:
static int idForNode(Node*);
static Node* nodeForId(int id);
« no previous file with comments | « Source/core/dom/DOMArrayPiece.h ('k') | Source/core/dom/DocumentEncodingData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698