Index: Source/core/events/EventPath.cpp |
diff --git a/Source/core/events/EventPath.cpp b/Source/core/events/EventPath.cpp |
index 62a549a8e667dca1d6f233a21e8627ab531519b2..a289e991f5a7bb5e750f14396a6f087ab643b542 100644 |
--- a/Source/core/events/EventPath.cpp |
+++ b/Source/core/events/EventPath.cpp |
@@ -119,6 +119,8 @@ void EventPath::calculatePath() |
if (!m_node->inDocument()) |
return; |
while (current) { |
+ if (m_event && current->keepEventInNode(m_event)) |
+ break; |
if (current->isShadowRoot() && m_event && determineDispatchBehavior(m_event, toShadowRoot(current), m_node) == StayInsideShadowDOM) |
break; |
WillBeHeapVector<RawPtrWillBeMember<InsertionPoint>, 8> insertionPoints; |