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

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

Issue 374133002: Remove remaining callers of deprecatedShadowAncestorNode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: Source/core/page/EventHandler.cpp
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
index f02bbce05b9e47279bc664e816faf680e84d7f20..eaf6c3e995f8a101c4454f47b87e7216812d1ebb 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -2499,8 +2499,10 @@ bool EventHandler::bestClickableNodeForHitTestResult(const HitTestResult& result
// FIXME: targetNode and success are only used by Internals functions. We should
// instead have dedicated test methods so we only do this work in tests.
bool success = findBestClickableCandidate(targetNode, targetPoint, touchCenter, touchRect, WillBeHeapVector<RefPtrWillBeMember<Node> > (nodes));
- if (success && targetNode)
- targetNode = targetNode->deprecatedShadowAncestorNode();
+ if (success && targetNode) {
+ if (targetNode->isInShadowTree())
+ targetNode = targetNode->shadowHost();
+ }
return success;
}

Powered by Google App Engine
This is Rietveld 408576698