Index: Source/WebCore/dom/EventDispatcher.cpp |
=================================================================== |
--- Source/WebCore/dom/EventDispatcher.cpp (revision 85612) |
+++ Source/WebCore/dom/EventDispatcher.cpp (working copy) |
@@ -163,8 +163,8 @@ |
} |
if (!diverged) { |
- // The relatedTarget is a parent or shadowHost of the target. |
- if (isShadowRootOrSVGShadowRoot(m_node.get())) |
+ // The relatedTarget is an ancestor or shadowHost of the target. |
+ if (m_node->shadowHost() == relatedTarget.get()) |
lowestCommonBoundary = m_ancestors.begin(); |
} else if ((*firstDivergentBoundary) == m_node.get()) { |
// Since ancestors does not contain target itself, we must account |