Index: Source/core/page/DragController.cpp |
diff --git a/Source/core/page/DragController.cpp b/Source/core/page/DragController.cpp |
index 8e34ef12b73d35fc75740a742569de94ef59c455..8ea4a297a92449e16f07d8623c6026ccfa4c4bdb 100644 |
--- a/Source/core/page/DragController.cpp |
+++ b/Source/core/page/DragController.cpp |
@@ -322,8 +322,8 @@ static Element* elementUnderMouse(Document* documentUnderMouse, const IntPoint& |
Node* n = result.innerNode(); |
while (n && !n->isElementNode()) |
n = n->parentOrShadowHostNode(); |
- if (n) |
- n = n->deprecatedShadowAncestorNode(); |
+ if (n && n->isInShadowTree()) |
+ n = n->shadowHost(); |
return toElement(n); |
} |