Index: Source/core/dom/custom/CustomElementScheduler.cpp |
diff --git a/Source/core/dom/custom/CustomElementScheduler.cpp b/Source/core/dom/custom/CustomElementScheduler.cpp |
index 2d21ad0ee006bb00d4f5506368cbaa7f778defc6..f0ba5cf05c9b046140bcc1cb163d137885881931 100644 |
--- a/Source/core/dom/custom/CustomElementScheduler.cpp |
+++ b/Source/core/dom/custom/CustomElementScheduler.cpp |
@@ -117,7 +117,7 @@ CustomElementCallbackQueue* CustomElementScheduler::ensureCallbackQueue(PassRefP |
Element* key = element.get(); |
ElementCallbackQueueMap::iterator it = m_elementCallbackQueueMap.find(key); |
if (it == m_elementCallbackQueueMap.end()) |
- it = m_elementCallbackQueueMap.add(key, CustomElementCallbackQueue::create(element)).iterator; |
+ return m_elementCallbackQueueMap.add(key, CustomElementCallbackQueue::create(element)).storedValue->value.get(); |
return it->value.get(); |
} |