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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2616913002: eventTargetData(): pull (most of) this singleton off-heap. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 54d7625aef662cc8155465ebfbcaacf9ae8a9e59..caf5618827c3424f3f6e8939958d3761287ee1f4 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -1882,9 +1882,9 @@ void Node::removeAllEventListenersRecursively() {
}
using EventTargetDataMap =
- HeapHashMap<WeakMember<Node>, Member<EventTargetData>>;
+ PersistentHeapHashMap<WeakMember<Node>, Member<EventTargetData>>;
static EventTargetDataMap& eventTargetDataMap() {
- DEFINE_STATIC_LOCAL(EventTargetDataMap, map, (new EventTargetDataMap));
+ DEFINE_STATIC_LOCAL(EventTargetDataMap, map, ());
return map;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698