From fb934b7878723bd752b558aee4047f9aee19405e Mon Sep 17 00:00:00 2001 From: Teng-Hui Zhu Date: Tue, 3 May 2011 11:51:59 -0700 Subject: Correct the move latest positioning This is fixing the issue when we move the slider, the moveLastest will send to 0,0, which cause a jump on the slider. bug:4232704 Change-Id: Ic7235158cbfb690a38f53ca1b3e4757a5d1a69f3 --- WebKit/android/nav/WebView.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'WebKit/android/nav/WebView.cpp') diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp index fe69eae..f4f8ce0 100644 --- a/WebKit/android/nav/WebView.cpp +++ b/WebKit/android/nav/WebView.cpp @@ -950,6 +950,7 @@ void selectBestAt(const WebCore::IntRect& rect) const CachedNode* node = findAt(root, rect, &frame, &rx, &ry); if (!node) { DBG_NAV_LOGD("no nodes found root=%p", root); + root->rootHistory()->setMouseBounds(rect); m_viewImpl->m_hasCursorBounds = false; root->setCursor(0, 0); viewInvalidate(); @@ -963,8 +964,6 @@ void selectBestAt(const WebCore::IntRect& rect) const_cast(node)); } sendMoveMouseIfLatest(false, false); - if (!node) - return; } const CachedNode* m_cacheHitNode; -- cgit v1.1