Index: Source/core/dom/EventContext.cpp |
diff --git a/Source/core/dom/EventContext.cpp b/Source/core/dom/EventContext.cpp |
index 5161783178fd5b32df40aa48be8b569dc34e67ac..7b8dd56cd504ce2521f350e611f31594d105d028 100644 |
--- a/Source/core/dom/EventContext.cpp |
+++ b/Source/core/dom/EventContext.cpp |
@@ -129,7 +129,7 @@ bool TouchEventContext::isTouchEventContext() const |
void TouchEventContext::checkReachability(TouchList* touchList) const |
{ |
for (size_t i = 0; i < touchList->length(); ++i) |
- ASSERT(isReachable(touchList->item(i)->target()->toNode())); |
+ ASSERT(touchList->item(i)->target()->toNode()->treeScope()->isInclusiveAncestorOf(m_node->treeScope())); |
} |
#endif |