summaryrefslogtreecommitdiffstats
path: root/WebKit
diff options
context:
space:
mode:
authorCary Clark <>2009-03-24 22:23:25 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-24 22:23:25 -0700
commit145f9f956cb5adf1c9f165e7376644e0cadd6792 (patch)
tree58d7b7fbb2ee9778dd372b8d9efce304c08ae517 /WebKit
parent866c190d90f60168a47371779789e600a6d8f131 (diff)
downloadexternal_webkit-145f9f956cb5adf1c9f165e7376644e0cadd6792.zip
external_webkit-145f9f956cb5adf1c9f165e7376644e0cadd6792.tar.gz
external_webkit-145f9f956cb5adf1c9f165e7376644e0cadd6792.tar.bz2
Automated import from //branches/donutburger/...@142283,142283
Diffstat (limited to 'WebKit')
-rw-r--r--WebKit/android/nav/WebView.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp
index 52bb6a5..8b6dd5a 100644
--- a/WebKit/android/nav/WebView.cpp
+++ b/WebKit/android/nav/WebView.cpp
@@ -892,6 +892,7 @@ CachedRoot* getFrameCache(FrameCachePermission allowNewer)
if (allowNewer == DontAllowNewer && m_viewImpl->m_lastGeneration < m_generation)
return m_frameCacheUI;
DBG_NAV_LOGD("%s", "m_viewImpl->m_updatedFrameCache == true");
+ bool hadFocus = m_frameCacheUI && m_frameCacheUI->currentFocus();
m_viewImpl->gFrameCacheMutex.lock();
OutOfFocusFix fix = DoNothing;
if (allowNewer != DontAllowNewer)
@@ -904,6 +905,8 @@ CachedRoot* getFrameCache(FrameCachePermission allowNewer)
m_viewImpl->m_frameCacheKit = 0;
m_viewImpl->m_navPictureKit = 0;
m_viewImpl->gFrameCacheMutex.unlock();
+ if (hadFocus && (!m_frameCacheUI || !m_frameCacheUI->currentFocus()))
+ viewInvalidate(); // redraw in case focus ring is still visible
if (fix == UpdateTextEntry)
updateTextEntry();
else if (fix == ClearTextEntry)