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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/DOMNodeIds.h
diff --git a/third_party/WebKit/Source/core/dom/DOMNodeIds.h b/third_party/WebKit/Source/core/dom/DOMNodeIds.h
index 15bb91f13db1d45355d55d7538b2e146338e8bcd..9396f50d2358bdc432f1a477b37b2c2470e85f52 100644
--- a/third_party/WebKit/Source/core/dom/DOMNodeIds.h
+++ b/third_party/WebKit/Source/core/dom/DOMNodeIds.h
@@ -12,14 +12,16 @@
namespace blink {
-DECLARE_WEAK_IDENTIFIER_MAP(Node);
+DECLARE_WEAK_IDENTIFIER_MAP(Node, uint64_t);
+
+using DOMNodeId = uint64_t;
wkorman 2017/05/08 18:23:25 Maybe suzyh already asked, can we not put using ab
class CORE_EXPORT DOMNodeIds {
STATIC_ONLY(DOMNodeIds);
public:
- static int IdForNode(Node*);
- static Node* NodeForId(int id);
+ static DOMNodeId IdForNode(Node*);
+ static Node* NodeForId(DOMNodeId);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698