diff options
| author | Nicolas Roard <nicolasroard@google.com> | 2011-10-12 17:01:09 -0700 | 
|---|---|---|
| committer | Nicolas Roard <nicolasroard@google.com> | 2011-10-12 17:01:09 -0700 | 
| commit | 69ae8c4ecaffcbc20d4b251a6e831ac6c4e58f30 (patch) | |
| tree | 90ea9f1c09c2c744934e945222c989cd426fde65 /Source/WebKit/android | |
| parent | 144926737b2b4e6f76f5c6347db3093b8a483e21 (diff) | |
| download | external_webkit-69ae8c4ecaffcbc20d4b251a6e831ac6c4e58f30.zip external_webkit-69ae8c4ecaffcbc20d4b251a6e831ac6c4e58f30.tar.gz external_webkit-69ae8c4ecaffcbc20d4b251a6e831ac6c4e58f30.tar.bz2 | |
Fix disappearing content
When we fixed the superfluous contentInvalidateAll() that was called
every time we were scrolling/zooming, this uncover some issues.
This particular one was clearing the entire pictureset when an iframe
was loaded -- this is wrong since we added support for composited
iframes, but we didn't experience this problem before because of the
contentInvalidateAll() masking it...
bug:5449492
Change-Id: I57e4ea68daf6de901118725f5b7d70087084f23b
Diffstat (limited to 'Source/WebKit/android')
| -rw-r--r-- | Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp b/Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp index 3134a44..0be31eb 100644 --- a/Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp +++ b/Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp @@ -919,9 +919,13 @@ void FrameLoaderClientAndroid::transitionToCommittedFromCachedFrame(WebCore::Cac  #ifdef ANDROID_META_SUPPORT     platformData->restoreMetadata(m_frame->settings());  #endif + +#if ENABLE(ANDROID_OVERFLOW_SCROLL) +#else     WebViewCore* webViewCore = WebViewCore::getWebViewCore(m_frame->view());     webViewCore->clearContent(); +#endif     m_webFrame->transitionToCommitted(m_frame);  } @@ -956,7 +960,12 @@ void FrameLoaderClientAndroid::transitionToCommittedForNewPage() {      // Create a new WebFrameView for the new FrameView      WebFrameView* newFrameView = new WebFrameView(m_frame->view(), webViewCore); + +#if ENABLE(ANDROID_OVERFLOW_SCROLL) +#else      webViewCore->clearContent(); +#endif +      newFrameView->setLocation(bounds.x(), bounds.y());      newFrameView->setSize(bounds.width(), bounds.height());      newFrameView->setVisibleSize(visBounds.width(), visBounds.height()); | 
