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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMNodeIds.h

Issue 2860293002: Change cc::ElementId to be a uint64_t (Closed)
Patch Set: none Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DOMNodeIds_h 5 #ifndef DOMNodeIds_h
6 #define DOMNodeIds_h 6 #define DOMNodeIds_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/dom/Node.h" 9 #include "core/dom/Node.h"
10 #include "core/dom/WeakIdentifierMap.h" 10 #include "core/dom/WeakIdentifierMap.h"
11 #include "platform/wtf/Allocator.h" 11 #include "platform/wtf/Allocator.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 DECLARE_WEAK_IDENTIFIER_MAP(Node); 15 DECLARE_WEAK_IDENTIFIER_MAP(Node, unsigned long long);
16 16
17 class CORE_EXPORT DOMNodeIds { 17 class CORE_EXPORT DOMNodeIds {
18 STATIC_ONLY(DOMNodeIds); 18 STATIC_ONLY(DOMNodeIds);
19 19
20 public: 20 public:
21 static int IdForNode(Node*); 21 static unsigned long long IdForNode(Node*);
suzyh_UTC10 (ex-contributor) 2017/05/05 04:27:30 Is this "unsigned long long" different from the El
chrishtr 2017/05/05 05:34:52 It's different from ElementId, because: * ElementI
22 static Node* NodeForId(int id); 22 static Node* NodeForId(unsigned long long id);
23 }; 23 };
24 24
25 } // namespace blink 25 } // namespace blink
26 26
27 #endif // DOMNodeIds_h 27 #endif // DOMNodeIds_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698