summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-05-03 11:51:59 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2011-05-03 11:54:25 -0700
commitfb934b7878723bd752b558aee4047f9aee19405e (patch)
tree62c0ff4c3d2df74d393a08c4fcdf38449f5001a4
parentcef717ff0869605896b43ea1c86b5c0fa96c2c81 (diff)
downloadexternal_webkit-fb934b7878723bd752b558aee4047f9aee19405e.zip
external_webkit-fb934b7878723bd752b558aee4047f9aee19405e.tar.gz
external_webkit-fb934b7878723bd752b558aee4047f9aee19405e.tar.bz2
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
-rw-r--r--WebKit/android/nav/WebView.cpp3
1 files changed, 1 insertions, 2 deletions
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<CachedNode*>(node));
}
sendMoveMouseIfLatest(false, false);
- if (!node)
- return;
}
const CachedNode* m_cacheHitNode;