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..1a204b4166c02a33a9009e2cd6ec2543059f03c3 100644 |
--- a/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp |
+++ b/third_party/WebKit/Source/core/dom/custom/CEReactionsScope.cpp |
@@ -6,6 +6,7 @@ |
#include "core/dom/Document.h" |
#include "core/dom/Element.h" |
+#include "core/dom/custom/CustomElement.h" |
#include "core/dom/custom/CustomElementReactionStack.h" |
#include "core/frame/FrameHost.h" |
@@ -18,10 +19,10 @@ void CEReactionsScope::enqueueToCurrentQueue( |
CustomElementReaction* reaction) |
{ |
if (!m_frameHost.get()) { |
- m_frameHost = element->document().frameHost(); |
+ m_frameHost = CustomElement::contextFrameHost(*element); |
m_frameHost->customElementReactionStack().push(); |
} else { |
- DCHECK_EQ(m_frameHost, element->document().frameHost()); |
+ DCHECK_EQ(m_frameHost, CustomElement::contextFrameHost(*element)); |
} |
m_frameHost->customElementReactionStack().enqueueToCurrentQueue( |
element, reaction); |