| Index: third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp
|
| index 2da6975a07b2b45e0f8330af73ccc608f2bc8f40..1ec77952d5ed56cb36c22416618391f4e158ec23 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/custom/CustomElementReactionStack.cpp
|
| @@ -30,16 +30,21 @@ void CustomElementReactionStack::push()
|
| void CustomElementReactionStack::popInvokingReactions()
|
| {
|
| ElementQueue* queue = m_stack.last();
|
| - m_stack.removeLast();
|
| - if (!queue)
|
| + if (!queue) {
|
| + m_stack.removeLast();
|
| return;
|
| - for (auto& element : *queue) {
|
| + }
|
| +
|
| + for (size_t i = 0; i < queue->size(); ++i) {
|
| + Element* element = (*queue)[i];
|
| if (CustomElementReactionQueue* reactions = m_map.get(element)) {
|
| reactions->invokeReactions(element);
|
| CHECK(reactions->isEmpty());
|
| m_map.remove(element);
|
| }
|
| }
|
| +
|
| + m_stack.removeLast();
|
| }
|
|
|
| void CustomElementReactionStack::enqueue(
|
|
|