diff options
| author | Cary Clark <cary@android.com> | 2010-01-11 14:55:20 -0500 |
|---|---|---|
| committer | Cary Clark <cary@android.com> | 2010-01-12 09:17:57 -0500 |
| commit | af3b7507bd6d2b10fce43aa0728b8afcf5cddd86 (patch) | |
| tree | 307b6ee806d0f6151fa9a3346397c2868244686b /WebKit/android | |
| parent | b5fff7f5056888a680d142d21ac5a5e1a775c4db (diff) | |
| download | external_webkit-af3b7507bd6d2b10fce43aa0728b8afcf5cddd86.zip external_webkit-af3b7507bd6d2b10fce43aa0728b8afcf5cddd86.tar.gz external_webkit-af3b7507bd6d2b10fce43aa0728b8afcf5cddd86.tar.bz2 | |
rebuild the nav cache if the clicked on node is invalid
Before, the slop parameter was set to zero if the node was
invalid, and used to skip searching for the node. Now, the
cache is rebuilt on the java side before the C side is
called.
requires a companion fix in frameworks/base
fixes http://b/2362334
Diffstat (limited to 'WebKit/android')
| -rw-r--r-- | WebKit/android/nav/WebView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp index 8977224..60113b8 100644 --- a/WebKit/android/nav/WebView.cpp +++ b/WebKit/android/nav/WebView.cpp @@ -927,7 +927,7 @@ bool motionUp(int x, int y, int slop) if (!root) return 0; const CachedFrame* frame = 0; - const CachedNode* result = slop ? findAt(root, rect, &frame, &rx, &ry) : 0; + const CachedNode* result = findAt(root, rect, &frame, &rx, &ry); if (!result) { DBG_NAV_LOGD("no nodes found root=%p", root); setNavBounds(rect); |
