Index: Source/core/events/TreeScopeEventContext.cpp |
diff --git a/Source/core/events/TreeScopeEventContext.cpp b/Source/core/events/TreeScopeEventContext.cpp |
index f0b8be827da1c126a40b1b2e3ff714770d340f8e..471aed102f734a2c99c762270e2979893f3b1d71 100644 |
--- a/Source/core/events/TreeScopeEventContext.cpp |
+++ b/Source/core/events/TreeScopeEventContext.cpp |
@@ -44,7 +44,7 @@ WillBeHeapVector<RefPtrWillBeMember<EventTarget>>& TreeScopeEventContext::ensure |
m_eventPath->reserveCapacity(path.size() + (window ? 1 : 0)); |
for (size_t i = 0; i < path.size(); ++i) { |
Node& rootNode = path[i].treeScopeEventContext().rootNode(); |
- if (rootNode.isShadowRoot() && toShadowRoot(rootNode).type() == ShadowRoot::AuthorShadowRoot) |
+ if (rootNode.isShadowRoot() && toShadowRoot(rootNode).type() == ShadowRoot::OpenShadowRoot) |
m_eventPath->append(path[i].node()); |
else if (path[i].treeScopeEventContext().isInclusiveAncestorOf(*this)) |
m_eventPath->append(path[i].node()); |