Index: third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp |
diff --git a/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp b/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp |
index dec7331dac87041e08f26ca8de954c0ea88d66d1..05e2200f05e7eb8d693107cea84e89bc6f255d49 100644 |
--- a/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp |
+++ b/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp |
@@ -7,7 +7,6 @@ |
#include "core/dom/Document.h" |
#include "core/dom/Element.h" |
#include "core/dom/custom/CustomElementReactionStack.h" |
-#include "core/frame/FrameHost.h" |
namespace blink { |
@@ -17,19 +16,16 @@ void CEReactionsScope::enqueueToCurrentQueue( |
Element* element, |
CustomElementReaction* reaction) |
{ |
- if (!m_frameHost.get()) { |
- m_frameHost = element->document().frameHost(); |
- m_frameHost->customElementReactionStack().push(); |
- } else { |
- DCHECK_EQ(m_frameHost, element->document().frameHost()); |
+ if (!m_workToDo) { |
+ m_workToDo = true; |
+ CustomElementReactionStack::current().push(); |
} |
- m_frameHost->customElementReactionStack().enqueueToCurrentQueue( |
- element, reaction); |
+ CustomElementReactionStack::current().enqueueToCurrentQueue(element, reaction); |
} |
void CEReactionsScope::invokeReactions() |
{ |
- m_frameHost->customElementReactionStack().popInvokingReactions(); |
+ CustomElementReactionStack::current().popInvokingReactions(); |
} |
} // namespace blink |