Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(876)

Unified Diff: Source/core/page/DragController.cpp

Issue 360733002: Remove callers of deprecatedShadowAncestorNode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: updated ReplaceSelectionCommand Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/ReplaceSelectionCommand.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « Source/core/editing/ReplaceSelectionCommand.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698