Index: Source/web/WebViewImpl.cpp |
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
index ea5ec18950cc2f9946141e5d29487d7f701da40d..5df3e5fac6fcde7f03c5fed483289f1bb886d3d4 100644 |
--- a/Source/web/WebViewImpl.cpp |
+++ b/Source/web/WebViewImpl.cpp |
@@ -1226,7 +1226,8 @@ Node* WebViewImpl::bestTapNode(const PlatformGestureEvent& tapEvent) |
// has hand cursor set. |
do { |
bestTouchNode = cursorDefiningAncestor; |
- cursorDefiningAncestor = findCursorDefiningAncestor(bestTouchNode->parentNode(), m_page->deprecatedLocalMainFrame()); |
+ cursorDefiningAncestor = findCursorDefiningAncestor(NodeRenderingTraversal::parent(bestTouchNode), |
+ m_page->deprecatedLocalMainFrame()); |
} while (cursorDefiningAncestor && showsHandCursor(cursorDefiningAncestor, m_page->deprecatedLocalMainFrame())); |
return bestTouchNode; |