From 15f1e443f22288ee82cde972517ebf3cc1153d97 Mon Sep 17 00:00:00 2001 From: Leon Scroggins Date: Thu, 7 Jan 2010 15:19:19 -0500 Subject: In motionUp, update the CachedHistory's mMouseBounds. mMouseBounds is later used to determine the point of clicking. Fixes http://b/issue?id=2313991 --- WebKit/android/nav/WebView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp index 89e6023..1267647 100644 --- a/WebKit/android/nav/WebView.cpp +++ b/WebKit/android/nav/WebView.cpp @@ -967,7 +967,9 @@ bool motionUp(int x, int y, int slop) } DBG_NAV_LOGD("CachedNode:%p (%d) x=%d y=%d rx=%d ry=%d", result, result->index(), x, y, rx, ry); - setNavBounds(WebCore::IntRect(rx, ry, 1, 1)); + WebCore::IntRect navBounds = WebCore::IntRect(rx, ry, 1, 1); + setNavBounds(navBounds); + root->rootHistory()->setMouseBounds(navBounds); updateCursorBounds(root, frame, result); root->setCursor(const_cast(frame), const_cast(result)); -- cgit v1.1