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

Unified Diff: Source/core/testing/Internals.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/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 70af4c97bceadd7a32dffc764518b28a724d889e..ac9197d3f41981aec2b275265eed67f6868e3a8f 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1505,8 +1505,13 @@ PassRefPtrWillBeRawPtr<StaticNodeList> Internals::nodesFromRect(Document* docume
if (!topPadding && !rightPadding && !bottomPadding && !leftPadding) {
HitTestResult result(point);
renderView->hitTest(request, result);
- if (result.innerNode())
- matches.append(result.innerNode()->deprecatedShadowAncestorNode());
+
+ Node* innerNode = result.innerNode();
+ if (innerNode) {
tkent 2014/07/08 23:33:01 nit: if (Node* innerNode = result.innerNode()) {
deepak.sa 2014/07/10 13:52:03 Done.
+ if (innerNode->isInShadowTree())
+ innerNode = innerNode->shadowHost();
+ matches.append(innerNode);
+ }
} else {
HitTestResult result(point, topPadding, rightPadding, bottomPadding, leftPadding);
renderView->hitTest(request, result);
« Source/core/page/FocusController.cpp ('K') | « Source/core/page/FocusController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698