Index: third_party/WebKit/Source/modules/accessibility/AXObject.cpp |
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp |
index 8f6582be4a01923b019a864c04a43b3fb1a1f8ec..030a68cde55f1a821bf9cb5b9a4af7f9547e8322 100644 |
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp |
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp |
@@ -1532,7 +1532,7 @@ int AXObject::lineForPosition(const VisiblePosition& position) const |
// If the position is not in the same editable region as this AX object, return -1. |
Node* containerNode = position.deepEquivalent().computeContainerNode(); |
- if (!containerNode->containsIncludingShadowDOM(getNode()) && !getNode()->containsIncludingShadowDOM(containerNode)) |
+ if (!containerNode->isShadowIncludingInclusiveAncestorOf(getNode()) && !getNode()->isShadowIncludingInclusiveAncestorOf(containerNode)) |
return -1; |
int lineCount = -1; |