Chromium Code Reviews| 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); |