Index: Source/core/accessibility/AXRenderObject.cpp |
diff --git a/Source/core/accessibility/AXRenderObject.cpp b/Source/core/accessibility/AXRenderObject.cpp |
index 792f68f24e930d9f405a76b14138279365dea85e..358a883433934bb9347d6aa8db4dfb4d0ec641c8 100644 |
--- a/Source/core/accessibility/AXRenderObject.cpp |
+++ b/Source/core/accessibility/AXRenderObject.cpp |
@@ -1272,7 +1272,10 @@ AXObject* AXRenderObject::accessibilityHitTest(const IntPoint& point) const |
layer->hitTest(request, hitTestResult); |
if (!hitTestResult.innerNode()) |
return 0; |
- Node* node = hitTestResult.innerNode()->deprecatedShadowAncestorNode(); |
+ |
+ Node* node = hitTestResult.innerNode(); |
+ if (node->isInShadowTree()) |
+ node = node->shadowHost(); |
if (isHTMLAreaElement(node)) |
return accessibilityImageMapHitTest(toHTMLAreaElement(node), point); |