Index: Source/core/dom/shadow/ElementShadow.cpp |
diff --git a/Source/core/dom/shadow/ElementShadow.cpp b/Source/core/dom/shadow/ElementShadow.cpp |
index f5bfe03e1ea60560b97e1e6c59bc4c0cee38e96a..cc1cf6109260d3a21da650b0c9610c81309d663c 100644 |
--- a/Source/core/dom/shadow/ElementShadow.cpp |
+++ b/Source/core/dom/shadow/ElementShadow.cpp |
@@ -29,12 +29,12 @@ |
#include "core/css/StyleSheetList.h" |
#include "core/dom/ElementTraversal.h" |
-#include "core/dom/NoEventDispatchAssertion.h" |
#include "core/dom/NodeTraversal.h" |
#include "core/dom/shadow/ContentDistribution.h" |
#include "core/html/HTMLContentElement.h" |
#include "core/html/HTMLShadowElement.h" |
#include "core/inspector/InspectorInstrumentation.h" |
+#include "platform/EventDispatchForbiddenScope.h" |
#include "platform/ScriptForbiddenScope.h" |
namespace blink { |
@@ -144,7 +144,7 @@ ElementShadow::~ElementShadow() |
ShadowRoot& ElementShadow::addShadowRoot(Element& shadowHost, ShadowRoot::ShadowRootType type) |
{ |
- NoEventDispatchAssertion assertNoEventDispatch; |
+ EventDispatchForbiddenScope assertNoEventDispatch; |
ScriptForbiddenScope forbidScript; |
if (type == ShadowRoot::AuthorShadowRoot && (!youngestShadowRoot() || youngestShadowRoot()->type() == ShadowRoot::UserAgentShadowRoot)) |