summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorCary Clark <cary@android.com>2009-07-06 15:58:40 -0700
committerCary Clark <cary@android.com>2009-07-06 15:58:40 -0700
commite7a80ff4f39b493179c846068bebe1eb8e9b501e (patch)
tree3ff161db6c8ce78086f7c1031d6a46f2ff5c47cf /WebKit
parent4eb3ce6a411b83706d9ffd8af76351249672ed56 (diff)
downloadexternal_webkit-e7a80ff4f39b493179c846068bebe1eb8e9b501e.zip
external_webkit-e7a80ff4f39b493179c846068bebe1eb8e9b501e.tar.gz
external_webkit-e7a80ff4f39b493179c846068bebe1eb8e9b501e.tar.bz2
hide the cursor when the link is followed
The cursor position is preserved, so additional trackball navigation will start from where the cursor ring was drawn last. Hiding the cursor gets rid of confusion where the cursor ring stays visible when clicking on a link that does not go to a new page, or when the new page has a link at the same physical location as the old page.
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/nav/WebView.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp
index 78b7c72..cf1e486 100644
--- a/WebKit/android/nav/WebView.cpp
+++ b/WebKit/android/nav/WebView.cpp
@@ -512,6 +512,8 @@ void drawCursorRing(SkCanvas* canvas)
bounds.intersect(WebCore::IntRect(0, 0, INT_MAX, INT_MAX));
postInvalidateDelayed(m_ringAnimationEnd - time, bounds);
} else {
+ if (m_followedLink)
+ hideCursor();
m_followedLink = false;
flavor = static_cast<CursorRing::Flavor>
(flavor - CursorRing::NORMAL_ANIMATING);