Index: third_party/WebKit/Source/core/dom/custom/CustomElementScheduler.cpp |
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementScheduler.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementScheduler.cpp |
index 0a6e03c0770845d2909c3d306ecf6667d98dd505..7cebedc301e606b69b0fdb7af9f73f88ae0babb5 100644 |
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementScheduler.cpp |
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementScheduler.cpp |
@@ -51,8 +51,8 @@ |
static ElementCallbackQueueMap& callbackQueues() |
{ |
- DEFINE_STATIC_LOCAL(ElementCallbackQueueMap, map, (new ElementCallbackQueueMap)); |
- return map; |
+ DEFINE_STATIC_LOCAL(Persistent<ElementCallbackQueueMap>, map, (new ElementCallbackQueueMap())); |
+ return *map; |
} |
static CustomElementCallbackQueue& ensureCallbackQueue(RawPtr<Element> element) |