summaryrefslogtreecommitdiffstats
path: root/WebKit/android/nav
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2010-01-07 15:19:19 -0500
committerLeon Scroggins <scroggo@google.com>2010-01-07 15:29:26 -0500
commit15f1e443f22288ee82cde972517ebf3cc1153d97 (patch)
tree96ee36ee92837ce5452a7eabfbde61aaa6910a85 /WebKit/android/nav
parent1ccac4c182607275cdb16213493afa414f0d365e (diff)
downloadexternal_webkit-15f1e443f22288ee82cde972517ebf3cc1153d97.zip
external_webkit-15f1e443f22288ee82cde972517ebf3cc1153d97.tar.gz
external_webkit-15f1e443f22288ee82cde972517ebf3cc1153d97.tar.bz2
In motionUp, update the CachedHistory's mMouseBounds.
mMouseBounds is later used to determine the point of clicking. Fixes http://b/issue?id=2313991
Diffstat (limited to 'WebKit/android/nav')
-rw-r--r--WebKit/android/nav/WebView.cpp4
1 files changed, 3 insertions, 1 deletions
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<CachedFrame*>(frame),
const_cast<CachedNode*>(result));