summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav/WebView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/nav/WebView.cpp')
-rw-r--r--WebKit/android/nav/WebView.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp
index a7a48cb..390879a 100644
--- a/WebKit/android/nav/WebView.cpp
+++ b/WebKit/android/nav/WebView.cpp
@@ -910,8 +910,7 @@ void selectBestAt(const WebCore::IntRect& rect)
if (!node) {
DBG_NAV_LOGD("no nodes found root=%p", root);
m_viewImpl->m_hasCursorBounds = false;
- if (root)
- root->setCursor(0, 0);
+ root->setCursor(0, 0);
viewInvalidate();
} else {
DBG_NAV_LOGD("CachedNode:%p (%d)", node, node->index());
@@ -923,6 +922,8 @@ void selectBestAt(const WebCore::IntRect& rect)
const_cast<CachedNode*>(node));
}
sendMoveMouseIfLatest(false);
+ if (!node)
+ return;
sendMoveSelection((WebCore::Frame*) frame->framePointer(),
(WebCore::Node*) node->nodePointer());
}